
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
This is the logger that I use in my CLI tools.
var davlog = require('davlog');
var logger = davlog.init({
name: 'foo',
color: 'white'
}); //Should only need once
logger.info('This is a test');
foo [info] This is test
Note that the module is an instance of itself, with the default options:
var davlog = require('davlog');
logger.info('This is a test');
davlog [info] This is test
infologwarnerrerror Will process.exit(1) when called.silent Disable all outputquiet Disable all but log and infoThe init function allows for 3 options:
name - The name prefix to the string: Defaults to: 'davlog'color - The string for the color or false to disable color: Defaults to magentatimestamps - If true, adds an ISO timestamp to the beginning of each log line.stdout - A writeable stream for normal log messages: Defaults to process.stdoutstderr - A writeable stream for error log messages: Defaults to process.stderrYou can override all prefixes by using the: logger.STRINGS object.
You can override all default colors by using the logger.COLORS object.
There are also stdout and stderr properties on the object, which are
readable streams. These are useful for piping log data elsewhere.

FAQs
The logger davglass uses in his CLI tools
The npm package davlog receives a total of 7 weekly downloads. As such, davlog popularity was classified as not popular.
We found that davlog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.