forked from Proxmox/proxmox
0550659cd1
Add the `proxmox_log` crate which includes the new logging infra. Export the `init_logger` function, which creates the `tracing` logger that includes the default subscriber and two layer. The first layer comes from the tracing-journald crate and logs everything that does not come from a worker-task/thread to the syslog. The second layer filters the exact opposite and writes the logs into the corresponding task-log file. Reviewed-by: Lukas Wagner <l.wagner@proxmox.com> Tested-by: Lukas Wagner <l.wagner@proxmox.com> Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
24 lines
582 B
TOML
24 lines
582 B
TOML
[package]
|
|
name = "proxmox-log"
|
|
version = "0.1.0"
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
description = "Logging infrastructure for proxmox"
|
|
|
|
exclude.workspace = true
|
|
|
|
[dependencies]
|
|
anyhow.workspace = true
|
|
nix.workspace = true
|
|
log.workspace = true
|
|
tracing.workspace = true
|
|
tracing-journald.workspace = true
|
|
tracing-subscriber.workspace = true
|
|
tracing-log = { workspace = true, features = ["std"] }
|
|
tokio = { workspace = true, features = ["rt-multi-thread"] }
|
|
proxmox-time.workspace = true
|
|
proxmox-sys.workspace = true
|
|
|