Global logger configuration with advanced formatting and file output options. Extends basic LoggerConfig with application-specific settings.
const loggerConfig: GlobalLoggerConfig = { enableLogger: true, logLevel: 'info', appName: 'my-temporal-app', logToFile: true, logFilePath: './logs/temporal.log', formatter: (level, message, context, timestamp) => `[${timestamp}] ${level.toUpperCase()} [${context}]: ${message}`}; Copy
const loggerConfig: GlobalLoggerConfig = { enableLogger: true, logLevel: 'info', appName: 'my-temporal-app', logToFile: true, logFilePath: './logs/temporal.log', formatter: (level, message, context, timestamp) => `[${timestamp}] ${level.toUpperCase()} [${context}]: ${message}`};
Optional
Global logger configuration with advanced formatting and file output options. Extends basic LoggerConfig with application-specific settings.
Example