Interface: GlobalLoggerConfig
Defined in: src/interfaces.ts:437
Global logger configuration with advanced formatting and file output options. Extends basic LoggerConfig with application-specific settings.
Example
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}`
};
Extends
Properties
appName?
optionalappName?:string
Defined in: src/interfaces.ts:438
enableLogger?
optionalenableLogger?:boolean
Defined in: src/interfaces.ts:457
Inherited from
formatter?
optionalformatter?: (level,message,context,timestamp) =>string
Defined in: src/interfaces.ts:439
Parameters
level
string
message
string
context
string
timestamp
string
Returns
string
logFilePath?
optionallogFilePath?:string
Defined in: src/interfaces.ts:441
logLevel?
optionallogLevel?:LogLevel
Defined in: src/interfaces.ts:458
Inherited from
logToFile?
optionallogToFile?:boolean
Defined in: src/interfaces.ts:440
muteErrors?
optionalmuteErrors?:boolean
Defined in: src/interfaces.ts:465
When true, suppresses error-level log output and prevents service methods from throwing on operational failures (they return structured error results instead).
Default
false
Inherited from
redactKeys?
optionalredactKeys?:string[]
Defined in: src/interfaces.ts:471
Extra object keys whose values are replaced with [REDACTED] when the library
logs structured data. Credentials, TLS material and payload bodies are always
redacted; see DEFAULT_REDACT_KEYS. Matching ignores case, - and _.