mirror of https://github.com/buggins/dlangui.git
logger: using writefln to allow formatted strings
This commit is contained in:
parent
0f0ac6a527
commit
e89b684274
|
|
@ -144,7 +144,7 @@ class Log {
|
|||
if (logLevel >= level && logFile !is null && logFile.isOpen) {
|
||||
SysTime ts = Clock.currTime();
|
||||
logFile.writef("%04d-%02d-%02d %02d:%02d:%02d.%03d %s ", ts.year, ts.month, ts.day, ts.hour, ts.minute, ts.second, ts.fracSecs.split!("msecs").msecs, logLevelName(level));
|
||||
logFile.writeln(args);
|
||||
logFile.writefln(args);
|
||||
logFile.flush();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue