mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 00:12:53 +08:00
12 lines
301 B
TypeScript
12 lines
301 B
TypeScript
import { createLogger, format, transports } from 'winston';
|
|
|
|
const { combine, colorize, simple } = format;
|
|
|
|
const LOG_LEVEL = 'verbose';
|
|
|
|
export const Logger = createLogger({
|
|
level: LOG_LEVEL,
|
|
format: combine(colorize(), simple()),
|
|
transports: [new transports.Console({ level: LOG_LEVEL })]
|
|
});
|