mirror of
https://github.com/cupcakearmy/gitea-sync.git
synced 2024-12-23 00:26:29 +00:00
13 lines
332 B
TypeScript
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()),
|
|
}),
|
|
],
|
|
})
|