oneuptime/CommonServer/Utils/Logger.ts
Simon Larsen a95201e803
fix lint.
2022-06-30 00:13:28 +01:00

15 lines
369 B
TypeScript

import { createLogger, Logger, transports, format } from 'winston';
const { combine, timestamp, errors, prettyPrint } = format;
const logger: Logger = createLogger({
format: combine(
errors({ stack: true }), // <-- use errors format
timestamp(),
prettyPrint()
),
transports: [new transports.Console()],
});
export default logger;