This project is a Node.js application that processes and validates logs, constructs a function call tree, and generates a visual representation of the tree using Mermaid.
- mermaid-cli to be installed in the machine
npm install -g @mermaid-js/mermaid-cli
To install the necessary dependencies, run the following command:
git clone https://github.com/sishir2001/logViz.git
cd logViz/
npm install
To run the application, use the following command in the project directory:
npm dev
- Log Processing: The application reads logs from a JSON file, validates the function calls, and constructs a function call tree.
- Mermaid Visualization: The application converts the function call tree into a Mermaid diagram and generates an SVG image of the diagram.
- Error Handling: The application handles errors gracefully and provides meaningful error messages.
- logs are converted to a function hierarchial tree and mermaid is used to generate the following visualization
- functionTree
Contributions are welcome! For major changes, please open an issue first to discuss what you would like to change.