ConsoleAndFileLogger

A logger that outputs messages to both a file and the console.

This class is designed to facilitate logging across two mediums simultaneously, leveraging a FileLogger for file output and ConsoleLogger for console output. This is particularly useful for environments where persistence and immediate visibility of logs are required.

Parameters

fileLogger

An instance of FileLogger used to log messages to a file.

Constructors

Link copied to clipboard
constructor(fileLogger: FileLogger)

Functions

Link copied to clipboard
open override fun log(level: Level, tag: String, message: String)

Logs a message to both the file and console with the specified level, tag, and message.