
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
@ekolabs/logger
Advanced tools
Transmits log messages (info, warn, debug, error, ...) to various reporting services such as flat files, getsentry, and AWS Kinesis Firehose.
The Eko Logger is a library which provides a set of logging functions (trace, debug, info, warn, error). Eko services such as encoding and publishing use the Eko Logger to record various logging events, for purposes of auditing and debugging. In those cases, the log messages are transmitted to the Eko back-end servers.
npm install --save @ekolabs/logger
Require the class constructor and create a new instance. On the constructor invocation you can pass arguments and options:
Arguments object:
Options object:
Full API docs are available by running yuidocs.
var EkoLogger = require('@helloeko/logger');
var loggerArgs = {
reporter: 'niftyService',
service_id: 'serviceABC'
};
var loggerOptions = {
environment: 'staging',
reporters: {
file: {
logFileName: 'logs_data.txt',
sync: true,
minLevel: 'debug'
},
sentry: {
sentryDSN: 'https://123abc@app.getsentry.com/12345',
minLevel: 'warn'
},
firehose: {
AWSOptions: {
DeliveryStream: 'kinesis_stream_100'
}
}
}
};
var logger = new EkoLogger(loggerArgs, loggerOptions);
logger.trace('omg what a lovely readme!');
logger.debug('someone just read the readme');
logger.info('you should check out this readme');
logger.warn('readme is rather boring', {task_id: 'ca13caab-f7ae-4534-bd6b-99e0555a4f6e'});
logger.error('readme is too long', {task_id: 'ca13caab-f7ae-4534-bd6b-99e0555a4f6e'});
FAQs
Transmits log messages (info, warn, debug, error, ...) to various reporting services such as flat files, getsentry, and AWS Kinesis Firehose.
The npm package @ekolabs/logger receives a total of 8 weekly downloads. As such, @ekolabs/logger popularity was classified as not popular.
We found that @ekolabs/logger 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
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.