log_parser_by_syn1ak 0.3.0

A parser for analyzing structured log files, utilizing the Pest parsing library. `log_parser` extracts components such as date, time, log level, module, request ID, error code, and message from each log entry. This enables efficient log analysis, filtering, and reporting, facilitating troubleshooting and monitoring in complex systems.
Documentation
all: fmt lint build test


fmt:
	cargo fmt


lint:
	cargo clippy


build:
	cargo build


test:
	cargo test


# 'inputs/logs.txt'
run:
	cargo run -- $(FILE)


help:
	@echo "Available commands:"

	@echo "make all     - Formats, lints, builds, and tests the project"

	@echo "make fmt     - Runs cargo fmt for formatting"

	@echo "make lint    - Runs cargo clippy for linting"

	@echo "make build   - Builds the project"

	@echo "make test    - Runs tests"

	@echo "make run FILE=path/to/your_file.txt - Runs the parser with a specified file"