1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//! A [`tracing_subscriber::Layer`] that pretty-prints span chains to stdout
//! and (optionally) the systemd journal.
//!
//! # Quick start
//!
//! ```no_run
//! use tracing::info;
//! use tracing_subscriber::prelude::*;
//! use tracing_systemd::SystemdLayer;
//!
//! tracing_subscriber::registry()
//! .with(SystemdLayer::stdout().with_target(true).with_thread_ids(true))
//! .init();
//!
//! info!("hello");
//! ```
//!
//! # Features
//!
//! | Feature | Default | Effect |
//! |------------|---------|-------------------------------------------------------------------------|
//! | `colors` | yes | Enables ANSI color output via [`nu-ansi-term`](https://docs.rs/nu-ansi-term). |
//! | `journald` | no | Re-exports the official [`tracing-journald`](https://docs.rs/tracing-journald) layer through [`mod@journald`]. Pure-Rust; no `libsystemd-dev` build dependency. |
//! | `json` | no | Adds [`SystemdLayer::json`] for one JSON object per event (uses [`serde_json`](https://docs.rs/serde_json)). |
//!
//! # Migrating from 0.1
//!
//! See [the README](https://github.com/ziidonato/tracing-systemd/blob/main/README.md#migration-from-01)
//! for a method-by-method mapping.
pub use TimestampFormat;
pub use SystemdLayer;
pub use Output;
pub use ;