FileLogger.this

A constructor for the FileLogger Logger.

  1. this(string fn, LogLevel lv)
    class FileLogger
    @safe
    this
    (
    const string fn
    ,)
  2. this(string fn, LogLevel lv, CreateFolder createFileNameFolder)
  3. this(File file, LogLevel lv)

Parameters

fn string

The filename of the output file of the FileLogger. If that file can not be opened for writting an exception will be thrown.

lv LogLevel

The LogLevel for the FileLogger. By default the

Examples

auto l1 = new FileLogger("logFile");
auto l2 = new FileLogger("logFile", LogLevel.fatal);
auto l3 = new FileLogger("logFile", LogLevel.fatal, CreateFolder.yes);

Meta