Helper to Visualize logs
- Visualize logs
- Understand logs better
- Uncover problems
This log gets translated to the below sequence diagram
2019-07-13 14:29:05:147 [Networking] DisplayClient say_hello: asking to connect to server
2019-07-13 14:29:06:239 [Networking] DisplayClient server_response: Today's is a hot day with a max temperature of 37C possibly
2019-07-13 14:29:06:239 [Networking] DisplayClient start_routine: state=waiting, entering locked state
Logalizer takes a log file and a config file as input. Logalizer outputs a translated file.
+--------+ | Config |------------------------. +--------+ | | V +-------------+ +-------------+ +---------------+ | Input Log |----------->| Logalizer |----------->| Translation | +-------------+ +-------------+ +---------------+
The translation can be directly used or fed to another tool for further processing.
The translated file can be used to generate UML diagrams.
+---------------+ +---------------+ +---------------+ | Translation |--------->| Plant UML |--------->| UML diagram | +---------------+ +---------------+ +---------------+
PlantUML and Mermaid like tools can convert text into diagrams.
Usage:
logalizer -c <config> -f <log>
logalizer -f <log>
logalizer -h | --help
logalizer --config-help
logalizer --version
Options:
-h --help Show this screen
--config-help Show sample configuration
--version Show version
-c <config> Translation configuration file. Default is ./config.json
-f <log> Log file to be interpreted
Example:
logalizer -c config.json -f trace.log
logalizer -f trace.log
Refer How To Configure.
-
Build
cmake --preset ninja-multi-vcpkg
cmake --build --preset ninja-multi-vcpkg-release
- Run Tests
ctest --preset ninja-multi-vcpkg-release --verbose