gitea-sync/src/logger.ts
2024-12-15 22:55:42 +01:00

13 lines
332 B
TypeScript

import winston from 'winston'
import { Config } from './config.ts'
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()),
}),
],
})