FileLogger

expect class FileLogger : Logger(source)

A logger for writing to a file in the application's storage so that log messages can persist durably after the application has stopped or encountered a problem. Each log level is written to a separate file. Threading policy: This class is certain to be used from multiple threads. As long as it is thread safe, the various race conditions are unlikely and the penalties very small. "Volatile" ensures the thread safety and the several races are tolerable.

actual class FileLogger : DelegatedClass<<Error class: unknown class>> , Logger(source)
actual class FileLogger : Logger(source)

Properties

Link copied to clipboard

The configuration currently in use by the file logger. Note that once a configuration has been installed in a logger, the configuration is read-only and can no longer be modified. An attempt to modify the configuration returned by this method will cause an exception.

Link copied to clipboard
expect open override var level: LogLevel

The maximum logging level that will be written to the logging files.

actual open override var level: LogLevel

Gets the level that will be logged via this logger.

actual open override var level: LogLevel

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
expect open override fun log(level: LogLevel, domain: LogDomain, message: String)

Performs the actual logging logic

actual open override fun log(level: LogLevel, domain: LogDomain, message: String)
Link copied to clipboard
open override fun toString(): String