dlogger ~master

A simple logger, to log messages.


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

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
Authors:
  • cvsae
Dependencies:
none
Versions:
0.0.1 2018-Mar-21
~master 2018-Mar-21
~v0.0.1 2018-Mar-21
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 2 downloads total

Score:
0.0
Short URL:
dlogger.dub.pm