Skip to content

FileHandler

1 min read

Import: import system.logging;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

FileHandler

Appends formatted lines to a file (synchronous host write).

public class FileHandler: LogHandler

constructor

Creates a handler that appends to path.

public constructor(path: string)

emit

Appends one formatted line to the file.

public fun emit(record: LogRecord): void