
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.
bunyan-logzio-simple
Advanced tools
Simple Logz.io stream for Bunyan
This project was bootstrapped with @pizzahut-hut/create-typescript-package.
yarn i bunyan-logzio --save
import { createLogger } from 'browser-bunyan';
import LogzIOBunyanStream from 'bunyan-logzio';
const LOGZIO_ACCESS_TOKEN = 'my-logzio-access-token';
const logger = createLogger({
name: 'bunyan-logzio-example',
stream: [
...
{
name: 'logz.io',
stream: new LogzIOBunyanStream({accessToken: LOGZIO_ACCESS_TOKEN}),
level: 'info',
}
...
]
})
logger.info('hello world');
Note:
Depending on the project this is being used on, you can invoke the library two other ways:
import LogzIOBunyanStream from 'bunyan-logzio/legacy';
import LogzIOBunyanStream from 'bunyan-logzio/src';
In the project directory, you can run:
yarn lint
Lints src and test files
yarn test
Launches the test runner, pass --watch
for interactive mode
yarn typecheck
Typecheck src and test files
yarn build
Compiles the package to lib
ready for publish
yarn eject
Note: this is a one-way operation. Once you eject
, you can’t go back!
If you aren’t satisfied with the build tool and configuration choices, you can eject
at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies right into your project so you have full control over them. All of the commands except eject
will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
FAQs
> Simple Logz.io stream for Bunyan
The npm package bunyan-logzio-simple receives a total of 1 weekly downloads. As such, bunyan-logzio-simple popularity was classified as not popular.
We found that bunyan-logzio-simple 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.