Skip to content

Formatter

Defined in: packages/pythonlib/src/logging.node.ts:146

Formatter for log records.

Constructors

Constructor

new Formatter(fmt?: string, datefmt?: string): Formatter

Defined in: packages/pythonlib/src/logging.node.ts:150

Parameters

ParameterType
fmt?string
datefmt?string

Returns

Formatter

Methods

format()

format(record: LogRecord): string

Defined in: packages/pythonlib/src/logging.node.ts:166

Parameters

ParameterType
recordLogRecord

Returns

string


formatTime()

formatTime(record: LogRecord): string

Defined in: packages/pythonlib/src/logging.node.ts:155

Parameters

ParameterType
recordLogRecord

Returns

string