mirror of
https://github.com/dlang/phobos.git
synced 2025-05-03 00:20:26 +03:00
Merge pull request #3906 from burner/std.logger.minor_doc_fix
std.logger.minor_doc_fix
This commit is contained in:
commit
2f4b761102
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue