LayoutReplacer
@tsed/logger
Usage
typescript
import { LayoutReplacer } from "@tsed/logger";
See /packages/logger/src/types/browser/layouts/LayoutReplacer.ts.
Overview
ts
class LayoutReplacer {
static EOL: string;
static HOSTNAME: string;
static formatter: typeof format;
constructor(tokens: TokensHandlers, timezoneOffset: number);
categoryName: (loggingEvent: LogEvent, specifier: string) => string;
formatAsDate: (loggingEvent: LogEvent, specifier: string) => string;
hostname: () => string;
formatMessage: (loggingEvent: LogEvent) => string;
formatJson: (loggingEvent: LogEvent) => string;
endOfLine: () => string;
logLevel: (loggingEvent: LogEvent) => string;
startTime: (loggingEvent: LogEvent) => string;
startColour: (loggingEvent: LogEvent) => string;
endColour: (loggingEvent: LogEvent) => string;
percent: () => string;
pid: (loggingEvent?: LogEvent) => string;
clusterInfo: (loggingEvent: LogEvent, specifier: string) => string;
userDefined: (loggingEvent: LogEvent, specifier: string) => any;
build(): IReplacers;
}
static EOL
ts
static EOL: string;
static HOSTNAME
ts
static HOSTNAME: string;
static formatter
ts
static formatter: typeof format;
categoryName:
ts
categoryName: (loggingEvent: LogEvent, specifier: string) => string;
formatAsDate:
ts
formatAsDate: (loggingEvent: LogEvent, specifier: string) => string;
hostname:
ts
hostname: () => string;
formatMessage:
ts
formatMessage: (loggingEvent: LogEvent) => string;
formatJson:
ts
formatJson: (loggingEvent: LogEvent) => string;
endOfLine:
ts
endOfLine: () => string;
logLevel:
ts
logLevel: (loggingEvent: LogEvent) => string;
startTime:
ts
startTime: (loggingEvent: LogEvent) => string;
startColour:
ts
startColour: (loggingEvent: LogEvent) => string;
endColour:
ts
endColour: (loggingEvent: LogEvent) => string;
percent:
ts
percent: () => string;
pid:
ts
pid: (loggingEvent?: LogEvent) => string;
clusterInfo:
ts
clusterInfo: (loggingEvent: LogEvent, specifier: string) => string;
userDefined:
ts
userDefined: (loggingEvent: LogEvent, specifier: string) => any;
build
ts
build(): IReplacers;