Merge pull request #3906 from burner/std.logger.minor_doc_fix

std.logger.minor_doc_fix
This commit is contained in:
H. S. Teoh 2016-01-07 13:36:44 -08:00
commit 2f4b761102

View file

@ -68,7 +68,7 @@ required $(D Logger).
$(H3 Logging Fundamentals)
$(H4 LogLevel)
The $(D LogLevel) of an log call can be defined in two ways. The first is by
The $(D LogLevel) of a log call can be defined in two ways. The first is by
calling $(D log) and passing the $(D LogLevel) explicit as the first argument.
The second way of setting the $(D LogLevel) of a
log call, is by calling either $(D trace), $(D info), $(D warning),
@ -101,8 +101,9 @@ the logger.
$(H4 Printf Sytle Logging)
If $(D printf)-style logging is needed add a $(B f) to the logging call, such as
$(D myLogger.infof("Hello %s", "world");) or $(fatalf("errno %d", 1337))
The additional $(B f) enables $(D printf)-style logging for call combinations of
explicit $(D LogLevel) and conditional logging functions and methods.
The additional $(B f) appended to the function name enables $(D printf)-style
logging for all combinations of explicit $(D LogLevel) and conditional
logging functions and methods.
$(H4 Thread Local Redirection)
Calls to the free standing log functions are not directly forwarded to the