mirror of
https://github.com/cupcakearmy/gitea-sync.git
synced 2024-12-22 08:06:25 +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()),
|
|
}),
|
|
],
|
|
})
|