Compare commits
1 Commits
8887031284
...
1d909ac034
Author | SHA1 | Date | |
---|---|---|---|
1d909ac034 |
@ -7,10 +7,7 @@ export const logger = winston.createLogger({
|
|||||||
transports: [new winston.transports.Console()],
|
transports: [new winston.transports.Console()],
|
||||||
format: format.combine(
|
format: format.combine(
|
||||||
format.errors({ stack: true }),
|
format.errors({ stack: true }),
|
||||||
format.printf(
|
format.printf(({ level, message }) => `${level}: ${message}`)
|
||||||
({ level, message, stack }) =>
|
|
||||||
`${level}: ${message}${stack ? "\n" + stack : ""}`
|
|
||||||
)
|
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user