Skip to content
logging library for d programming language
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Logging library for D. Extandable and configurable. Supports multiple sinks.

Dependency solving and linking to project

Currently not uploaded to public dub registry (, so some workaround is needed.

Use dub add-local possibility.

git checkout
cd logging
dub add-local .

Should add local reference to logging under ~master branch (may use tags or something else)

In dependant project simply add in dub.json under dependencies section

    "logging" : "~master"

Example usage:

import logging;

log.add_sink(new ConsoleLogSink);
log.add_sink(new FileLogSink("/dev/null"));
log.add_sink(new SysLogSink(""));

log.error("this msg #%s: %s", 1, "error");
log.warn("this msg #%s: %s", 2, "warn");"this msg #%s: %s", 3, "info");
log.debg("this msg #%s: %s", 4, "debg");
log.trace("this msg #%s: %s", 5, "trace");
You can’t perform that action at this time.