1 ///
2 module supervised.logging;
3 
4 import std.stdio;
5 import std.experimental.logger;
6 
7 private __gshared Logger _logger;
8 
9 shared static this() {
10     debug {
11         auto loglevel = LogLevel.info;
12     } else {
13         auto loglevel = LogLevel.info;
14     }
15 
16     _logger = new FileLogger(stdout, loglevel);
17 }
18 
19 ///
20 @property Logger logger() @trusted {
21     return _logger;
22 }
23 
24 ///
25 @property void logger(Logger logger) @trusted {
26     synchronized {
27         _logger = logger;
28     }
29 }