|
|
@ -32,9 +32,9 @@ function setCorrelationContext(correlationId: number, context: LogCorrelationCon |
|
|
|
correlationContext.set(correlationId, context); |
|
|
|
} |
|
|
|
|
|
|
|
export interface LogContext<T> { |
|
|
|
export interface LogContext { |
|
|
|
id: number; |
|
|
|
instance: T; |
|
|
|
instance: any; |
|
|
|
instanceName: string; |
|
|
|
name: string; |
|
|
|
prefix: string; |
|
|
@ -55,7 +55,7 @@ export function debug any>( |
|
|
|
correlate?: boolean; |
|
|
|
enter?(...args: Parameters<T>): string; |
|
|
|
exit?(result: PromiseType<ReturnType<T>>): string; |
|
|
|
prefix?(context: LogContext<T>, ...args: Parameters<T>): string; |
|
|
|
prefix?(context: LogContext, ...args: Parameters<T>): string; |
|
|
|
sanitize?(key: string, value: any): any; |
|
|
|
singleLine?: boolean; |
|
|
|
timed?: boolean; |
|
|
@ -74,7 +74,7 @@ export function log any>( |
|
|
|
debug?: boolean; |
|
|
|
enter?(...args: Parameters<T>): string; |
|
|
|
exit?(result: PromiseType<ReturnType<T>>): string; |
|
|
|
prefix?(context: LogContext<T>, ...args: Parameters<T>): string; |
|
|
|
prefix?(context: LogContext, ...args: Parameters<T>): string; |
|
|
|
sanitize?(key: string, value: any): any; |
|
|
|
singleLine?: boolean; |
|
|
|
timed?: boolean; |
|
|
|