Ver a proveniência

Removes T from LogContext (since it doesn't work)

main
Eric Amodio há 5 anos
ascendente
cometimento
20bd4ea549
1 ficheiros alterados com 4 adições e 4 eliminações
  1. +4
    -4
      src/system/decorators/log.ts

+ 4
- 4
src/system/decorators/log.ts Ver ficheiro

@ -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;

Carregando…
Cancelar
Guardar