sile / sloggers

A Rust library which provides frequently used slog loggers and convenient functions
MIT License
37 stars 18 forks source link

Support JSON format #40

Closed eiiches closed 3 years ago

eiiches commented 3 years ago

Hi, first of all, thanks for creating this useful crate.

It would be useful if sloggers supports JSON format in addition to slog_term::CompactFormat and FullFormat. It is getting more and more common to write logs in JSON because it's more structured and easily parseable by machines. Also, some logging infrastructures, such as Google Cloud Logging, support ingesting JSON logs natively.