#json-log #pretty-print #caddy #command-line-tool #logs #log-file #system

bin+lib caddy-pretty-print

A CLI tool to pretty print Caddy json logs

3 releases (breaking)

0.3.0 Apr 28, 2024
0.2.0 Apr 20, 2024
0.1.0 Mar 16, 2024

#25 in #json-log

Apache-2.0 OR MIT

19KB
349 lines

caddy-pretty-print

Latest Version Apache 2.0 OR MIT licensed

A CLI tool to pretty print Caddy json logs.

Install

If cargo is installed, caddy-pretty-print can be installed with it:

$ cargo install caddy-pretty-print

Alternatively, you can download a pre-built binary for your operating system from the latest release.

How to use

You can pipe the log directly into it, from a file:

cat caddy.log | caddy-pretty-print

Or from the output of any other job

sudo journalctl -u caddy.service --output cat - | caddy-pretty-print

License

Licensed under either of Apache License 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~5–14MB
~197K SLoC