indentlog: update README
This commit is contained in:
parent
61441f2513
commit
f71c009a0f
1 changed files with 7 additions and 7 deletions
14
README.md
14
README.md
|
|
@ -1,6 +1,6 @@
|
|||
# nestlog -- logging with automatic call-graph indenting
|
||||
# indentlog -- logging with automatic call-graph indenting
|
||||
|
||||
Nestlog is a lightweight header-only library for console logging.
|
||||
Indentlog is a lightweight header-only library for console logging.
|
||||
|
||||
## Features
|
||||
|
||||
|
|
@ -21,7 +21,7 @@ Nestlog is a lightweight header-only library for console logging.
|
|||
### 1
|
||||
|
||||
```
|
||||
#include "nestlog/scope.hpp"
|
||||
#include "indentlog/scope.hpp"
|
||||
|
||||
using namespace xo;
|
||||
|
||||
|
|
@ -44,7 +44,7 @@ main(int argc, char ** argv) {
|
|||
output:
|
||||

|
||||
|
||||
- nestlog types are provided in the `xo` namespace.
|
||||
- indentlog types are provided in the `xo` namespace.
|
||||
macros are prefixed with `XO_`
|
||||
- indentation reflects call structure. We don't see anything for `main()`,
|
||||
since we didn't put any logging there
|
||||
|
|
@ -54,7 +54,7 @@ output:
|
|||
```
|
||||
/* examples ex2/ex2.cpp */
|
||||
|
||||
#include "nestlog/scope.hpp"
|
||||
#include "indentlog/scope.hpp"
|
||||
|
||||
using namespace xo;
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ main(int argc, char ** argv) {
|
|||
output:
|
||||

|
||||
|
||||
- global configuration settings live in the `xo::log_config` class. see [log_config.hpp](include/nestlog/log_config.hpp)
|
||||
- global configuration settings live in the `xo::log_config` class. see [log_config.hpp](include/indentlog/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.
|
||||
|
||||
|
|
@ -101,7 +101,7 @@ output:
|
|||
```
|
||||
/* examples ex3/ex3.cpp */
|
||||
|
||||
#include "nestlog/scope.hpp"
|
||||
#include "indentlog/scope.hpp"
|
||||
|
||||
using namespace xo;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue