From 335083579e5b33db98146865ca88198870a69fe4 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Sat, 16 Sep 2023 15:20:16 -0400 Subject: [PATCH] nestlog: README: format nits --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1c2df2a3..587893f9 100644 --- a/README.md +++ b/README.md @@ -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: +![ex2 output](img/ex2.png) + - 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: -![ex2 output](img/ex2.png) - ### 3 example exposing runtime configuration options ```