
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@saasly/logs-client-nodejs
Advanced tools
npm i @saasly/logs-client-nodejs
import saaslyLogger from "@saasly/logs-client-nodejs";
saaslyLogger({apiKey: "YOUR_API_KEY"});
console.log
, console.error
, console.warn
, console.info
, console.debug
Enjoy 😍
If you want to use require
:
const {default: saaslyLogger} = require("@saasly/logs-client-nodejs");
saaslyLogger({apiKey: "YOUR_API_KEY"});
Option | Required? | Default | Description |
---|---|---|---|
apiKey | Required | undefined | Your API key, get for free at https://client.saasly.io |
source | Optional | process.env.PROCESS_NAME , process.env.NODE_ENV or undefined | Should be some identifier showing location where app runs. Could be process.env.NODE_ENV or some process name like "api", "cron-runner" |
identifier | Optional | undefined | If log message includes #something the "something" part will be set as identifier. You could setup your IDE to add random string, or can just type in random things while logging. Very useful when need to find exact console.log by error/log message. E.g. console.log('#27014143832 Hello') . Identifier would be 27014143832 |
doTrackLog | Optional | true | If true, will pipe logs from console.log() to saasly |
doTrackError | Optional | true | If true, will pipe logs from console.error() to saasly |
doTrackWarn | Optional | true | If true, will pipe logs from console.warn() to saasly |
doTrackInfo | Optional | true | If true, will pipe logs from console.info() to saasly |
doTrackDebug | Optional | true | If true, will pipe logs from console.debug() to saasly |
FAQs
`npm i @saasly/logs-client-nodejs`
We found that @saasly/logs-client-nodejs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.