When you build your application you can access some log configuration:
1 ./yourApplication --help
you might have an output for elog:
2 [P] yourApplication [options]
3 [P] --elog-level= Change the default log level (set all Log level):
4 [P] 0: debug None (default in release)
8 [P] 4: debug Info (default in debug)
11 [P] --elog-lib=name:X Set a library specific level:
12 [P] name Name of the library
13 [P] X Log level to set [0..6]
14 [P] note: ':' can be replace with '/' or '+'
15 [P] --elog-file=pathToFile File to store the logs: (disable console logs)
16 [P] --elog-color Enable color in log (default in Linux/debug)
17 [P] --elog-no-color Disable color in log (default in Linux/release and Other)
18 [P] --elog-config= Configure the Log interface
20 [P] T: diplay thread id
21 [P] N: diplay thread name
22 [P] L: diplay line number
23 [P] l: diplay lib name
24 [P] f: diplay function name
25 [P] -h/--help: Display this help
27 [P] yourApplication --elog-color --elog-level=2 --elog-lib=etk:5 --elog-lib=appl:6 --elog-config=NLlf
Then you can simply select the log level with:
1 ./yourApplication --elog-level=5
Or select a sub-element log level:
1 ./yourApplication --elog-lib=elog:1 --elog-lib=appl:6
Store in a file:
1 ./yourApplication --elog-file=log.txt