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.
@dexare/logger
Advanced tools
Changelog
[1.0.2] - 2022-04-06
Readme
A Dexare module for colorful logging with winston and chalk.
npm install @dexare/logger
const { DexareClient } = require('dexare');
const LoggerModule = require('@dexare/logger');
const config = {
// All props in this config are optional, defaults are shown unless told otherwise
logger: {
// The level to log at, defaults to 'info' if process.env.NODE_ENV is 'production'
level: 'debug',
// The options object for util.inspect
inspectOptions: {}
}
}
const client = new DexareClient(config);
client.loadModules(LoggerModule);
// ...
// You can set the color of a module or level by defining it
// in `module.moduleColors` and `module.levelColors` respectively
const chalk = require('chalk');
const logger = client.modules.get('logger');
logger.moduleColors.info = chalk.black.bgCyan;
// Loggers are also created per module in `winston.loggers`.
FAQs
A Dexare module that provides colorful logging
The npm package @dexare/logger receives a total of 4 weekly downloads. As such, @dexare/logger popularity was classified as not popular.
We found that @dexare/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
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.