소스 검색

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

main
Eric Amodio 5 년 전
부모
커밋
20bd4ea549
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +4
    -4
      src/system/decorators/log.ts

+ 4
- 4
src/system/decorators/log.ts 파일 보기

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

불러오는 중...
취소
저장