mirror of
https://github.com/KjellKod/g3log.git
synced 2024-12-12 10:23:50 +01:00
Readme improvement
This commit is contained in:
parent
52af38396f
commit
485bf57fa8
@ -27,7 +27,7 @@ Most of the API that you need for using g3log is described in this readme. For m
|
||||
|
||||
|
||||
## Logging API: LOG calls
|
||||
It is optional to use either streaming ```LOG(INFO) << "some text" ``` or printf-like syntax ```LOGF(WARNING, "some number %d", 123); ```
|
||||
LOG calls can follow streaming ```LOG(INFO) << "some text" ``` or printf-like syntax ```LOGF(WARNING, "some number %d", 123); ```
|
||||
|
||||
Conditional logging is made with ```LOG_IF(INFO, <boolean-expression>) << " some text" ``` or ```LOGF_IF(WARNING, <boolean-expression>) << " some text".``` Only if the expressions evaluates to ```true``` will the logging take place.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user