Skip to main content

@webda/workoutReadme | API


Class: DebugLogger

Unit test in file.spec.ts

Extends

Constructors

new DebugLogger(output, filepath)

new DebugLogger(output, filepath): DebugLogger

Parameters

output: WorkerOutput

filepath: string

Returns

DebugLogger

Overrides

FileLogger.constructor

Source

src/loggers/debug.ts:8

Properties

filepath

filepath: string

Inherited from

FileLogger.filepath

Source

src/loggers/file.ts:14


format

format: string

Inherited from

FileLogger.format

Source

src/loggers/file.ts:16


level

level: WorkerLogLevel

Inherited from

FileLogger.level

Source

src/loggers/file.ts:13


listener

listener: (msg) => void

Parameters

msg: WorkerMessage

Returns

void

Inherited from

FileLogger.listener

Source

src/loggers/index.ts:8


output

output: WorkerOutput

Inherited from

FileLogger.output

Source

src/loggers/index.ts:9


outputCount

outputCount: number = 0

Inherited from

FileLogger.outputCount

Source

src/loggers/file.ts:12


outputStream?

outputStream?: WriteStream

Inherited from

FileLogger.outputStream

Source

src/loggers/file.ts:11


sizeLimit

sizeLimit: number

Inherited from

FileLogger.sizeLimit

Source

src/loggers/file.ts:15

Methods

close()

close(): void

Close the listener

Returns

void

Inherited from

FileLogger.close

Source

src/loggers/index.ts:29


filter()

filter(): boolean

Returns

boolean

Overrides

FileLogger.filter

Source

src/loggers/debug.ts:12


getLine()

getLine(msg): string

Parameters

msg: WorkerMessage

Returns

string

Overrides

FileLogger.getLine

Source

src/loggers/debug.ts:16


onMessage()

onMessage(msg): void

Process a WorkerOutput message

Parameters

msg: WorkerMessage

Returns

void

Inherited from

FileLogger.onMessage

Source

src/loggers/file.ts:35


rotateLogs()

rotateLogs(filepath): void

Parameters

filepath: string

Returns

void

Inherited from

FileLogger.rotateLogs

Source

src/loggers/file.ts:84