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