
Product
Introducing Module Reachability: Focus on the Vulnerabilities That Matter
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
debug-logfmt
Advanced tools
debug
, use DEBUG
for enable/disable logging.info
, warn
and error
logging levels, inspired from RFC 5424.$ npm install debug-logfmt --save
const debug = require('debug-logfmt')
const log = debug('metascraper')
log.debug('retry', { url: req.url })
log.info('done', { time: ms('1 hour') })
log.warn('token expired', { timestamp: Date.now() })
log.error('whoops', { message: error.message })
Required
Type: string
The env variable name to use for enabling logging using DEBUG
.
Type: array
Default: ['debug', 'info', 'warn', 'error']
The log levels available.
debug-logfmt © Kiko Beats, released under the MIT License.
Authored and maintained by Kiko Beats with help from contributors.
kikobeats.com · GitHub Kiko Beats · X @Kikobeats
FAQs
debug module using logfmt format
The npm package debug-logfmt receives a total of 33,281 weekly downloads. As such, debug-logfmt popularity was classified as popular.
We found that debug-logfmt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Product
Module Reachability filters out unreachable CVEs so you can focus on vulnerabilities that actually matter to your application.
Product
Socket is introducing a new way to organize repositories and apply repository-specific security policies.
Research
Security News
Socket researchers uncovered malicious npm and PyPI packages that steal crypto wallet credentials using Google Analytics and Telegram for exfiltration.