FileLogger.this
this
(const string fn, const LogLevel lv = LogLevel.all)A constructor for the FileLogger Logger.
Parameters
fn | The filename of the output file of the FileLogger. If that file can not be opened for writting an exception will be thrown. |
lv | The LogLevel for the FileLogger. By default the Example: |
this
(const string fn, const LogLevel lv, CreateFolder createFileNameFolder)A constructor for the FileLogger Logger that takes a reference to a File.
The File passed must be open for all the log call to the FileLogger. If the File gets closed, using the FileLogger for logging will result in undefined behaviour.
Parameters
fn | The file used for logging. |
lv | The LogLevel for the FileLogger. By default the LogLevel for FileLogger is LogLevel.all. |
createFileNameFolder | if yes and fn contains a folder name, this folder will be created. Example: |
A constructor for the FileLogger Logger that takes a reference to a File.
The File passed must be open for all the log call to the FileLogger. If the File gets closed, using the FileLogger for logging will result in undefined behaviour.
Parameters
file | The file used for logging. |
lv | The LogLevel for the FileLogger. By default the LogLevel for FileLogger is LogLevel.all. Example: |