nestlog: README: try embedding screen capture
This commit is contained in:
parent
efdcacf9b5
commit
3e457e4435
2 changed files with 15 additions and 4 deletions
19
README.md
19
README.md
|
|
@ -67,21 +67,32 @@ output:
|
|||
|
||||
int
|
||||
main(int argc, char ** argv) {
|
||||
log_config::min_log_level = xo::log_level::info;
|
||||
log_config::min_log_level = log_level::info;
|
||||
log_config::time_enabled = true;
|
||||
log_config::time_local_flag = true;
|
||||
log_config::style = FS_Streamlined;
|
||||
log_config::indent_width = 4;
|
||||
log_config::max_indent_width = 30;
|
||||
log_config::location_tab = 80;
|
||||
log_config::encoding = CE_Xterm;
|
||||
log_config::function_entry_color = 69;
|
||||
log_config::function_exit_color = 70;
|
||||
log_config::code_location_color = 166;
|
||||
|
||||
int n = 4;
|
||||
int n = 3;
|
||||
|
||||
scope log(XO_ENTER0(info), ":n ", 4);
|
||||
|
||||
int fn = fib(n);
|
||||
|
||||
log && log(":n ", n);
|
||||
log && log("<- :fib(n) ", fn);
|
||||
log && log(tag("n", n));
|
||||
log && log("<-", xtag("fib(n)", fn));
|
||||
}
|
||||
|
||||
output:
|
||||
|
||||
[ex3 output](img/ex3.png)
|
||||
|
||||
20:13:12.992909 +(0) main :n 4 [ex2.cpp:30]
|
||||
20:13:12.992968 +(1) fib :n 4 [ex2.cpp:9]
|
||||
20:13:12.992986 +(2) fib :n 3 [ex2.cpp:9]
|
||||
|
|
|
|||
BIN
img/ex3.png
Executable file
BIN
img/ex3.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
Loading…
Add table
Add a link
Reference in a new issue