
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
be-error-logger
Advanced tools
This Browser / Node.js library is a helper for logging errors in the Be format.
Designed as contents of: <APP_ROOT>/lib/core/loggers.js
:
const loggerFactory = require('be-error-logger');
module.exports = loggerFactory.create('My Application', process.pid, process.stdout, process.stderr);
Then, in many other places within the application:
const loggers = require('./core/loggers');
const logger = loggers.get('name_of_file');
// ...
logger.info('stats_channel', 'some_description', { time_in_ms: 34 });
Output to stdout
:
[2017-02-01 23:13:10] CHANNEL='stats_channel' LEVEL='INFO' APP_NAME='My Application' MESSAGE='name_of_file:some_description' PID='3421' TIME_IN_MS='34'\n
loggers.get()
returns a Logger with the following interface:
Each of these, in turn, has the following interface:
channel
- String
- rendered as `CHANNEL='name_of_chan'message
- String
- rendered as MESSAGE='context:message'
optional
- Object
- rendered as KEY1='value1' KEY2='value2'
etc.FAQs
Behance Error Logger
The npm package be-error-logger receives a total of 75 weekly downloads. As such, be-error-logger popularity was classified as not popular.
We found that be-error-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
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.