gitea-sync/src/logger.ts

13 lines
332 B
TypeScript
Raw Normal View History

2023-03-09 01:09:52 +00:00
import winston from 'winston'
import { Config } from './config.js'
export const logger = winston.createLogger({
level: Config.logging.level,
transports: [
new winston.transports.Console({
format: winston.format.combine(winston.format.timestamp(), winston.format.colorize(), winston.format.simple()),
}),
],
})