Compare commits

..

No commits in common. "71343d674290c5b18c2ae0e2245ea20f4317d3bf" and "ca259c5f248ddc96b7d5b4de2e37dd5f676893dc" have entirely different histories.

2 changed files with 12116 additions and 12120 deletions

View File

@ -1,8 +1,5 @@
import { createLogger, format, transports } from "winston"
import { config } from "./configuration"
import { v4 } from "uuid"
export function newRequestId() { return v4() }
export const noGuildId = 'NoGuildId'
const printFn = format.printf(({ guildId, level, message, errorCode, requestId, timestamp: logTimestamp }: { [k: string]: string }) => {
@ -16,8 +13,7 @@ const logFormat = format.combine(
const consoleTransports = [
new transports.Console({
format: logFormat,
silent: process.env.NODE_ENV === 'testing'
format: logFormat
})
]
export const logger = createLogger({