logging 0.3.0

simple logging library


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

logging


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

Dependency solving and linking to project

Currently not uploaded to public dub registry (code.dlang.org), so some workaround is needed.

Use dub add-local possibility.

git checkout [email protected]:dlibs/logging.git
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

"dependencies":
{
    "logging" : "~master"
}

Example usage:


import logging;

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

log.error("this msg #%s: %s", 1, "error");
log.warn("this msg #%s: %s", 2, "warn");
log.info("this msg #%s: %s", 3, "info");
log.debg("this msg #%s: %s", 4, "debg");
log.trace("this msg #%s: %s", 5, "trace");
Authors:
  • Ruslan Mullakhmetov
Dependencies:
none
Versions:
0.3.0 2014-Jul-11
~master 2014-Jul-11
Show all 2 versions
Download Stats:
  • 0 downloads today

  • 1 downloads this week

  • 2 downloads this month

  • 244 downloads total

Score:
0.5
Short URL:
logging.dub.pm