Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/slog-rs/journald

journald support for slog-rs
https://github.com/slog-rs/journald

Last synced: 15 days ago
JSON representation

journald support for slog-rs

Awesome Lists containing this project

README

        

# slog-journald

![Build Status](https://github.com/slog-rs/journald/workflows/CI/badge.svg?branch=master)]
[![Gitter](https://img.shields.io/gitter/room/slog-rs/slog.svg)](https://gitter.im/slog-rs/slog)
[![Documentation](https://docs.rs/slog/badge.svg)](https://docs.rs/releases/search?query=slog)

This is a straightforward journald drain for [slog-rs](https://github.com/dpc/slog-rs).

Journald and slog-rs work very well together since both support structured log data. This crate will convert structured data (that is, key-value pairs) into journald fields. Since, journald field names are more restrictive than keys in slog-rs, key names are sanitized to be valid journald fields.

This crate supports specialized handling of logged errors via features. Look into `Cargo.toml` for more information.