Write only error logs on production
All checks were successful
Bump deps (only minor versions) / ci (push) Successful in 21s

This commit is contained in:
0d0 2025-02-25 17:10:10 +01:00
parent 652208aa57
commit 5b278b75c0

View file

@ -1,8 +1,9 @@
import formats from '$lib/common/supportedFormats.json';
import winston from 'winston';
import { dev } from '$app/environment';
export const logger = winston.createLogger({
level: 'debug',
level: dev ? 'debug' : 'error',
format: winston.format.json(),
transports: [new winston.transports.Console()]
});