logd-html 0.1.0
A lightweight D logger that writes to a html for formatted output
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:
logd-html
logd-html is a lightweight logger which writes to a html file; this allows formatted output and the potential for controls to review specific events, etc. Based on logger originally written by Patrick Monaghan
How to use
Install using dub
dub fetch logd-html
General usage
import logd-html;
void main() {
EnableLogging(true);
// By default will log to file "log.html"
SetLogFilename("sampleLog.html");
// Write newline
Log();
// Write to log, valid levels are:
// success
// event
// warning
// error
// update
// user
Log(Level.event, "Hello world");
// Log with header tag
LogTag(Level.user, "h1", "This is a header");
}
Todo
- Define config file to customize formatted output (not sure about this, could lead to a bulkier system than I would like)
- Add some js to interact with log file (e.g. hide particular levels, highlight keywords, etc)
- Validate allowable tags for LogTag
- Registered by Joshua Hodkinson
- 0.1.0 released 8 years ago
- Amaranthos/logd-html
- MIT
- Copyright © 2016, Joshua Hodkinson
- Authors:
- Dependencies:
- none
- Versions:
-
0.3.1 2016-Sep-03 0.3.0 2016-Sep-03 0.2.1 2016-Aug-28 0.2.0 2016-Aug-28 0.1.0 2016-Aug-28 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
52 downloads total
-
- Score:
- 0.7
- Short URL:
- logd-html.dub.pm