replace logger
This commit is contained in:
11
src/util/log.ts
Normal file
11
src/util/log.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import pino from 'pino';
|
||||
|
||||
export const logger = pino({
|
||||
base: null,
|
||||
level: process.env.LOG_LEVEL || (import.meta.env.DEV ? 'debug' : 'warn'),
|
||||
formatters: {
|
||||
level: (label) => {
|
||||
return { label };
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user