How to set Global Log level in an application
Chris Piker via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Oct 27 15:54:18 PDT 2015
On Tuesday, 27 October 2015 at 21:50:31 UTC, Chris Piker wrote:
> I get the following compile errors from the experimental logger
> class:
>
> /usr/include/dmd/phobos/std/experimental/logger/core.d(702):
> Error: long has no effect in expression (cast(ubyte)160u)
>
Solved: Finally found how to set the global log level for the
entire app...
import std.experimental.logger;
globalLogLevel(LogLevel.warning);
Could a list of the module-level functions be provided in the
documentation page for std.experimental.logger ? Other modules
such as std.file have this but it appears to be lacking for this
one.
More information about the Digitalmars-d-learn
mailing list