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 git@gitlab.nemo.tv: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");
- 0.3.0 released 10 years ago
- theambient/logging
- MIT
- Copyright © 2014, Ruslan Mullakhmetov
- Authors:
- Dependencies:
- none
- Versions:
-
0.3.0 2014-Jul-11 ~master 2014-Jul-11 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
244 downloads total
-
- Score:
- 0.5
- Short URL:
- logging.dub.pm