
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.
logzio-bunyan
Advanced tools
Logz.io stream for the Bunyan logger
npm install logzio-bunyan --save
var bunyan = require('bunyan');
var logzioBunyanStream = require('logzio-bunyan');
var loggerOptions = {
token: '__YOUR_API_TOKEN__'
};
var logzioStream = new logzioBunyanStream(loggerOptions);
var log = bunyan.createLogger({
name: 'myapp',
streams: [
{
type: 'raw',
stream: logzioStream
}
]
});
log.info('hi');
log.warn({lang: 'en'}, 'ok lets go');
Make sure you replace __YOUR_API_TOKEN__
with your own logz.io api token.
If you do not have a Logz.io account, you can sign up for a free trial here
This bunyan plugin, basically just wraps our nodejs logzio shipper.
If you want to configure the nodejs logger, any parameters sent to bunyan when initializing the stream
(what is held in the variable loggerOptions
in the sample above) will be passed to the logzio nodejs logger itself.
0.2.0
msg
to message
be compatible with the default kibana message
field0.2.1
0.2.2
0.2.3
FAQs
A Logzio stream for the Bunyan logger
The npm package logzio-bunyan receives a total of 178 weekly downloads. As such, logzio-bunyan popularity was classified as not popular.
We found that logzio-bunyan demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.