yage.system.log
Authors:
Eric Poggel
License:
LGPL v3
- struct
Log
;
-
Log
to a file or the console.
- enum
Level
;
- Use these options to specify logging levels.
-
INFO
WARN
ERROR
TRACE
- enum
Output
;
- Use these options to specify where the log should be written.
-
CONSOLE
FILE
- static Level
level
;
- Only logs of this
level
or greater will be written.
- static uint
output
;
- Specify where to log.
- static char[]
file
;
- If output includes File, write to this
file
.
- static bool
info
(...);
static bool
warn
(...);
static bool
error
(...);
static bool
trace
(...);
- Write to the log. Arguments are the same as std.stdio.writefln in Phobos.
Returns true
if the output settings allowed anything to be written.
- void
dump
(T)(T t);
- Recursively print a data structure.
|