Sfoglia il codice sorgente

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

main
Eric Amodio 5 anni fa
parent
commit
20bd4ea549
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. +4
    -4
      src/system/decorators/log.ts

+ 4
- 4
src/system/decorators/log.ts Vedi File

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

Caricamento…
Annulla
Salva