View source code
Display the source code in std/experimental/logger/core.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Enum member std.experimental.logger.core.moduleLogLevel
This template returns the LogLevel
named "logLevel" of type LogLevel
defined in a user defined module where the filename has the
suffix "loggerconfig.d". This LogLevel
sets the minimal LogLevel
of the module.
enum moduleLogLevel(string moduleName)
= LogLevel .all;
template moduleLogLevel(string moduleName)
;
A minimal LogLevel
can be defined on a per module basis.
In order to define a module LogLevel
a file with a modulename
"MODULENAME_loggerconfig" must be found. If no such module exists and the
module is a nested module, it is checked if there exists a
"PARENT_MODULE_loggerconfig" module with such a symbol.
If this module exists and it contains a LogLevel
called logLevel this LogLevel
will be used. This parent lookup is continued until there is no
parent module. Then the moduleLogLevel is LogLevel
.
Enum member moduleLogLevel
Template moduleLogLevel
Example
static assert(moduleLogLevel!"" == LogLevel .all);
Example
static assert(moduleLogLevel!"not.amodule.path" == LogLevel .all);
Authors
License
Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.