Logger.this

Initializes a new logger. Usually, you won't use this constructor, and instead, you should obtain a Logger via loggerFactory.getLogger().

struct Logger
this
(,,
string name = __MODULE__
)

Parameters

handler LogHandler

The handler to handle log messages.

level Level

The log level of this logger. Only log messages with a level of equal or greater severity will be logged by this logger.

name string

The name of the logger. It defaults to the name of the module where the logger was initialized.