summaryrefslogtreecommitdiff
path: root/libphobos/src/std/experimental/logger/nulllogger.d
diff options
context:
space:
mode:
Diffstat (limited to 'libphobos/src/std/experimental/logger/nulllogger.d')
-rw-r--r--libphobos/src/std/experimental/logger/nulllogger.d16
1 files changed, 9 insertions, 7 deletions
diff --git a/libphobos/src/std/experimental/logger/nulllogger.d b/libphobos/src/std/experimental/logger/nulllogger.d
index 0c55377d0f9..0ff7663bd92 100644
--- a/libphobos/src/std/experimental/logger/nulllogger.d
+++ b/libphobos/src/std/experimental/logger/nulllogger.d
@@ -1,21 +1,24 @@
-///
+// Written in the D programming language.
+/**
+Source: $(PHOBOSSRC std/experimental/logger/nulllogger.d)
+*/
module std.experimental.logger.nulllogger;
import std.experimental.logger.core;
-/** The $(D NullLogger) will not process any log messages.
+/** The `NullLogger` will not process any log messages.
-In case of a log message with $(D LogLevel.fatal) nothing will happen.
+In case of a log message with `LogLevel.fatal` nothing will happen.
*/
class NullLogger : Logger
{
- /** The default constructor for the $(D NullLogger).
+ /** The default constructor for the `NullLogger`.
Independent of the parameter this Logger will never log a message.
Params:
- lv = The $(D LogLevel) for the $(D NullLogger). By default the $(D LogLevel)
- for $(D NullLogger) is $(D LogLevel.all).
+ lv = The `LogLevel` for the `NullLogger`. By default the `LogLevel`
+ for `NullLogger` is `LogLevel.all`.
*/
this(const LogLevel lv = LogLevel.all) @safe
{
@@ -32,7 +35,6 @@ class NullLogger : Logger
@safe unittest
{
import std.experimental.logger.core : LogLevel;
-
auto nl1 = new NullLogger(LogLevel.all);
nl1.info("You will never read this.");
nl1.fatal("You will never read this, either and it will not throw");