Creates log at dir/name. Tries to create parent directory and all sub directories.
Option how to open logging file
Used to manual shutdown protocols.
Format message with default logging style (etc. time and level string).
Tries to create log file at location.
Prints message into log. Displaying in the console controlled by minOutputLevel property.
Setups minimum log level,
Log file name.
Setting new log file name. If the value differs from old one, logger should close old one and open new file.
Unsafe write down the message without any meta information.
Checks if the log file is exists at specified location and if can't find it, recreates the file and continues write into it.
shared ILogger logger = new StrictLogger("my_awesome_log.log"); logger.minOutputLevel = LoggingLevel.Warning; // info msgs won't be printed in console logger.logInfo("Info message!"); logger.logError("Error message!"); logger.logDebug("Debug message!"); // received USR1 signal from logrotate logger.reload;
Standard implementation of ILogger interface.