feat: add pino logger for serverside

This commit is contained in:
Levente Orban
2025-10-27 11:00:22 +01:00
parent 2a96d3762c
commit e75c7e40dc
-7
View File
@@ -14,16 +14,9 @@ const transport = USE_PRETTY_LOGS
}
: undefined;
// Create the logger instance
export const logger = pino({
level: LOG_LEVEL,
transport
});
// Export a helper to create child loggers with context
export function createChildLogger(bindings: Record<string, unknown>) {
return logger.child(bindings);
}
// Export types
export type Logger = typeof logger;