mirror of
https://github.com/AppFlowy-IO/AppFlowy-Web.git
synced 2025-11-29 10:47:56 +08:00
17 lines
385 B
TypeScript
17 lines
385 B
TypeScript
import pino from 'pino';
|
||
|
||
const prettyTransport = {
|
||
target: 'pino-pretty',
|
||
options: {
|
||
colorize: true,
|
||
translateTime: 'SYS:standard',
|
||
},
|
||
};
|
||
|
||
export const logger = pino({
|
||
transport: process.env.NODE_ENV === 'production' ? undefined : prettyTransport,
|
||
level: process.env.LOG_LEVEL || 'info',
|
||
});
|
||
|
||
// Request timing logic removed – we only keep the shared logger here.
|