20 lines
310 B
D
20 lines
310 B
D
|
module minwin.logging;
|
||
|
|
||
|
public import std.stream;
|
||
|
|
||
|
//version=StdOutLog;
|
||
|
|
||
|
version (LOG) {
|
||
|
Stream log;
|
||
|
version (StdOutLog) {
|
||
|
static this() {
|
||
|
log = stdout;
|
||
|
}
|
||
|
} else {
|
||
|
static this() {
|
||
|
log = new BufferedFile("log.txt",FileMode.OutNew);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|