enhancment complete with phase 10
This commit is contained in:
1 parent
2c4927478a
commit
6adb541967
44 files changed
+7820
-845
No files matched your search
@@ -7,7 +7,7 @@ import pino from "pino";
|
||||
|
||||
/**
|
||||
* Create logger instance based on environment
|
||||
* - Development: Pretty-printed logs to console
|
||||
* - Development: JSON logs to console (pino-pretty disabled due to Turbopack compatibility)
|
||||
* - Production: JSON logs for aggregation/monitoring
|
||||
*/
|
||||
const logger = pino({
|
||||
@@ -19,16 +19,9 @@ const logger = pino({
|
||||
return { level: label };
|
||||
},
|
||||
},
|
||||
...(process.env.NODE_ENV !== "production" && {
|
||||
transport: {
|
||||
target: "pino-pretty",
|
||||
options: {
|
||||
colorize: true,
|
||||
translateTime: "HH:MM:ss Z",
|
||||
ignore: "pid,hostname",
|
||||
},
|
||||
},
|
||||
}),
|
||||
// Note: pino-pretty transport disabled for Next.js 15+ Turbopack compatibility
|
||||
// The transport uses worker threads which cause module resolution issues
|
||||
// Logs will be in JSON format in all environments
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user