Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
levenlabs-log
Advanced tools
Changelog
0.2.0 ###
Readme
A library for logging that follows the Leven Labs Logging Spec. Based on go-llog.
var log = require('levenlabs-log');
Can also be used in a browser environment to log messages to the console.
Set the global minimum logging level. level
can be a string or number.
Log message
if the current level is less or equal to level
. level
can be
a string or number. If keyVals
is sent, the values keys and values will be
logged as well.
For convenience, if keyVals
is an instance of Error
it will be
automatically expanded to {error: keyVals}
.
Helper method for calling log.log('debug', message, keyVals)
.
Helper method for calling log.log('info', message, keyVals)
.
Helper method for calling log.log('warn', message, keyVals)
.
Helper method for calling log.log('error', message, keyVals)
.
Helper method for calling log.log('fatal', message, keyVals)
. Except that
after it logs, it calls process.exit(1)
, if being called in a Node.js
environment.
Defaults to false. Set to true to enable putting the timestamp in each log.
FAQs
Leven Labs Logging
The npm package levenlabs-log receives a total of 4 weekly downloads. As such, levenlabs-log popularity was classified as not popular.
We found that levenlabs-log 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
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.