initLogger

Initialises the KamelosoLogger logger for use in this thread.

It needs to be separately instantiated per thread, and even so there may be race conditions. Plugins are encouraged to use ThreadMessages to log to screen from other threads.

@safe
void
initLogger
(
const Flag!"monochrome" monochrome
,
const Flag!"brightTerminal" bright
,
const Flag!"headless" headless
,
const Flag!"flush" flush
)

Parameters

monochrome Flag!"monochrome"

Whether the terminal is set to monochrome or not.

bright Flag!"brightTerminal"

Whether the terminal has a bright background or not.

headless Flag!"headless"

Whether the terminal is headless or not.

flush Flag!"flush"

Whether the terminal needs to manually flush standard out after writing to it.

Examples

initLogger(No.monochrome, Yes.brightTerminal);

Meta