kameloso.logger

Contains the custom KamelosoLogger class, used to print timestamped and (optionally) coloured logging messages.

Members

Classes

KamelosoLogger
class KamelosoLogger

Logger class, used to print timestamped and coloured logging messages.

Enums

LogLevel
enum LogLevel

Logging levels; copied straight from std.logger, to save us an import.

Examples

auto logger = new KamelosoLogger(
    colours: true,
    brightTerminal: false,
    headless: false,
    flush: false);

logger.log("This is LogLevel.all");
logger.info("LogLevel.info");
logger.warn(".warn");
logger.error(".error");
logger.trace(".trace");
//logger.fatal("This will crash the program.");

See Also

Meta