nestlog: README: format nits
This commit is contained in:
parent
0260ca79c1
commit
335083579e
1 changed files with 4 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ output:
|
|||
- indentation reflects call structure. We don't see anything for `main()`,
|
||||
since we didn't put any logging there
|
||||
|
||||
### 2 slightly more elaborate
|
||||
### 2 slightly more elaborate example
|
||||
|
||||
```
|
||||
/* examples ex2/ex2.cpp */
|
||||
|
|
@ -89,13 +89,13 @@ main(int argc, char ** argv) {
|
|||
log && log("<- :fib(n) ", fn);
|
||||
}
|
||||
```
|
||||
output:
|
||||

|
||||
|
||||
- global configuration settings live in the `xo::log_config` class. see [log_config.hpp](include/nestlog/log_config.hpp)
|
||||
- the recommended form `log && log(...)` tests whether logging at this site is enabled /before/ evaluating/formatting the log message;
|
||||
when logging is disabled, this saves the cost of computing and formatting that message.
|
||||
|
||||
output:
|
||||

|
||||
|
||||
### 3 example exposing runtime configuration options
|
||||
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue