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'
2024-12-15 21:55:42 +00:00
import { Config } from './config.ts'
2023-03-09 01:09:52 +00:00
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()),
}),
],
})