How to use the egg-logger.ConsoleTransport function in egg-logger

To help you get started, we’ve selected a few egg-logger examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-modules / cluster-client / lib / default_logger.js View on Github external
'use strict';

const { Logger, ConsoleTransport } = require('egg-logger');
const { consoleFormatter } = require('egg-logger/lib/utils');
const logger = new Logger();
logger.set('console', new ConsoleTransport({
  level: 'INFO',
  formatter: consoleFormatter,
}));

module.exports = logger;
github eggjs / egg-development-proxyworker / lib / utils / console.js View on Github external
'use strict';

const Logger = require('egg-logger').Logger;
const ConsoleTransport = require('egg-logger').ConsoleTransport;

const logger = new Logger();

logger.set('console', new ConsoleTransport({
  level: 'DEBUG',
}));

module.exports = logger;

egg-logger

egg logger

MIT
Latest version published 6 months ago

Package Health Score

76 / 100
Full package analysis

Similar packages