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.