Skip to content

utils/strace

Interfaces

StraceLogger

Defined in: utils/strace.ts:120

Properties

PropertyTypeDefined in
trace(this: void, …args: any[]) => voidutils/strace.ts:121
debug(this: void, …args: any[]) => voidutils/strace.ts:122
info(this: void, …args: any[]) => voidutils/strace.ts:123
warn(this: void, …args: any[]) => voidutils/strace.ts:124
error(this: void, …args: any[]) => voidutils/strace.ts:125
traceLazy(this: void, a: | string | LazyLogCallback, b?: string, c?: LazyLogCallback) => voidutils/strace.ts:127
debugLazy(this: void, a: | string | LazyLogCallback, b?: string, c?: LazyLogCallback) => voidutils/strace.ts:128
infoLazy(this: void, a: | string | LazyLogCallback, b?: string, c?: LazyLogCallback) => voidutils/strace.ts:129
warnLazy(this: void, a: | string | LazyLogCallback, b?: string, c?: LazyLogCallback) => voidutils/strace.ts:130
errorLazy(this: void, a: | string | LazyLogCallback, b?: string, c?: LazyLogCallback) => voidutils/strace.ts:131
isTrace(this: void) => booleanutils/strace.ts:133
isDebug(this: void) => booleanutils/strace.ts:134
isInfo(this: void) => booleanutils/strace.ts:135
isLevelEnabled(this: void, level: LogLevel) => booleanutils/strace.ts:136
setLevel(this: void, level: LogLevel) => voidutils/strace.ts:138
getLevel(this: void) => LogLevelutils/strace.ts:139
setHandler(this: void, handler?: (this: void, level: LogLevel, …args: any[]) => void) => voidutils/strace.ts:140

Type Aliases

LogLevel

type LogLevel = "TRACE" | "DEBUG" | "INFO" | "STATS" | "WARN" | "ERROR" | "NONE";

Defined in: utils/strace.ts:1


LazyLogCallback

type LazyLogCallback = (this: void) => any[];

Defined in: utils/strace.ts:75

Parameters

ParameterType
thisvoid

Returns

any[]

Variables

strace

const strace: StraceLogger;

Defined in: utils/strace.ts:146

Unified structured tracing & logging utility.

References

default

Renames and re-exports strace