wildflock/logger.ts

11 lines
478 B
TypeScript
Raw Normal View History

2023-07-29 18:10:00 +00:00
// For more information about this file see https://dove.feathersjs.com/guides/cli/logging.html
2023-07-29 21:50:42 +00:00
import { createLogger, format, transports } from "winston";
2023-07-29 18:10:00 +00:00
// Configure the Winston logger. For the complete documentation see https://github.com/winstonjs/winston
export const logger = createLogger({
// To see more detailed errors, change this to 'debug'
2023-07-29 21:50:42 +00:00
level: "info",
2023-07-29 18:10:00 +00:00
format: format.combine(format.splat(), format.simple()),
2023-07-29 21:50:42 +00:00
transports: [new transports.Console()],
});