Files
AppFlowy-Web/deploy/logger.ts
Nathan.fooo 3de8aaa565 refactor: server ts (#179)
* refactor: server ts

* refactor: add more tests
2025-11-27 16:02:54 +08:00

17 lines
385 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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.