diff --git a/src/lib/server/helpers.ts b/src/lib/server/helpers.ts index 09cc730..7474981 100644 --- a/src/lib/server/helpers.ts +++ b/src/lib/server/helpers.ts @@ -1,5 +1,11 @@ import formats from '$lib/common/supportedFormats.json'; +import winston from 'winston'; +export const logger = winston.createLogger({ + level: 'debug', + format: winston.format.json(), + transports: [new winston.transports.Console()], +}); const formatMime = new Map(Object.entries(formats)) export const isURLValid = (url: string) => { try {