
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@xervo/logger
Advanced tools
A Winston wrapper with a simplified interface and opinionated output.
npm install @xervo/logger
The returned object is a winston logger instance, so all behavior is documented on that project. The addition of a namespace prefix mimics behavior of our other favorite logger: debug.
const Logger = require('@xervo/logger')('namespace')
Logger.info('message', { example: true })
// writes to process.stdout
// 2015-11-28T01:38:45.979Z INFO namespace message {"example":true}
The default log level is info
, but can be configured using the environment
variable LOG_LEVEL
.
LOG_LEVEL=debug npm start
All uncaught exceptions are automatically logged to stderr
and the process is
exited. There is no need to add an additional handler. If you would like to
enable the additional behavior of writing all exceptions to a file, you can!
Just set an environment variable EXCEPTION_LOG
to a writeable file.
EXCEPTION_LOG=/var/logs/myapp.exceptions.log npm start
FAQs
Winston wrapper with simplified interface
The npm package @xervo/logger receives a total of 1 weekly downloads. As such, @xervo/logger popularity was classified as not popular.
We found that @xervo/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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.