FileLogHandler
classin packageklyn.logging.handler
public class FileLogHandler extends AbstractLogHandler implements AutoClosable
└ FileLogHandler
All Implemented Interfaces: AutoClosable

Appends human-readable events to a UTF-8 file.

Example
import klyn.logging
import klyn.logging.handler

handler = FileLogHandler("application.log")
Logs.configure(handler)
Inherited Properties
propertyInherited Properties from AbstractLogHandler: minimumLevel
Constructors
Modifier and Type Member Description
public FileLogHandler
FileLogHandler(path as String, minimumLevel as LogLevel = LogLevel.TRACE, append as Boolean = true)
Creates an appending file handler.
Methods
Modifier and Type Member Description
public override close
close() as Void
Closes this file handler.
public override flush
flush() as Void
Flushes buffered log data to the file.
public override handle
handle(event as LogEvent) as Void
Appends one formatted line under the handler lock.
Inherited Methods
methodInherited Methods from AbstractLogHandler: accepts, close, flush, handle
methodInherited Methods from AutoClosable: close
methodInherited Methods from LogHandler: accepts, flush, handle