dlogger ~master
A simple logger, to log messages.
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:
dlogger
A simple event logger with datetime format for dlang
Usage
import std.stdio;
import dlogger;
void main()
{
auto log = new log("debug.log");
log.write("This is a warning", WARNING);
log.write("This is a error", ERROR);
log.write("This is a info", INFO);
}
cat debug.log
2018-Mar-22 01:42:12 WARNING This is a warning
2018-Mar-22 01:42:12 ERROR This is a error
2018-Mar-22 01:42:12 INFO This is a info
- Registered by cvsae
- ~master released 6 years ago
- cvsae/dlogger
- MIT
- Copyright © 2018, cvsae
- Authors:
- Dependencies:
- none
- Versions:
-
0.0.1 2018-Mar-21 ~master 2018-Mar-21 ~v0.0.1 2018-Mar-21 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
46 downloads total
-
- Score:
- 0.0
- Short URL:
- dlogger.dub.pm