Gabriel Goller 0550659cd1 proxmox-log: add tracing infrastructure
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>
2024-07-11 14:43:37 +02:00

53 lines
2.1 KiB
Plaintext

Source: rust-proxmox-log
Section: rust
Priority: optional
Build-Depends: debhelper (>= 12),
dh-cargo (>= 25),
cargo:native <!nocheck>,
rustc:native <!nocheck>,
libstd-rust-dev <!nocheck>,
librust-anyhow-1+default-dev <!nocheck>,
librust-log-0.4+default-dev (>= 0.4.17-~~) <!nocheck>,
librust-nix-0.26+default-dev (>= 0.26.1-~~) <!nocheck>,
librust-proxmox-sys-0.5+default-dev (>= 0.5.1-~~) <!nocheck>,
librust-proxmox-time-1+default-dev (>= 1.1.6-~~) <!nocheck>,
librust-tracing-journald-0.3+default-dev <!nocheck>
librust-tokio-1+default-dev (>= 1.6-~~) <!nocheck>,
librust-tokio-1+rt-multi-thread-dev (>= 1.6-~~) <!nocheck>,
librust-tracing-0.1+default-dev <!nocheck>,
librust-tracing-log-0.1-dev (>= 0.1.3-~~) <!nocheck>,
librust-tracing-subscriber-0.3+default-dev (>= 0.3.16-~~) <!nocheck>
Maintainer: Proxmox Support Team <support@proxmox.com>
Standards-Version: 4.6.2
Vcs-Git: git://git.proxmox.com/git/proxmox.git
Vcs-Browser: https://git.proxmox.com/?p=proxmox.git
X-Cargo-Crate: proxmox-log
Rules-Requires-Root: no
Package: librust-proxmox-log-dev
Architecture: any
Multi-Arch: same
Depends:
${misc:Depends},
librust-anyhow-1+default-dev,
librust-log-0.4+default-dev (>= 0.4.17-~~),
librust-nix-0.26+default-dev (>= 0.26.1-~~),
librust-proxmox-sys-0.5+default-dev (>= 0.5.1-~~),
librust-proxmox-time-1+default-dev (>= 1.1.6-~~),
librust-tracing-journald-0.3+default-dev,
librust-tokio-1+default-dev (>= 1.6-~~),
librust-tokio-1+rt-multi-thread-dev (>= 1.6-~~),
librust-tracing-0.1+default-dev,
librust-tracing-log-0.1-dev (>= 0.1.3-~~),
librust-tracing-subscriber-0.3+default-dev (>= 0.3.16-~~)
Provides:
librust-proxmox-log+default-dev (= ${binary:Version}),
librust-proxmox-log-0-dev (= ${binary:Version}),
librust-proxmox-log-0+default-dev (= ${binary:Version}),
librust-proxmox-log-0.1-dev (= ${binary:Version}),
librust-proxmox-log-0.1+default-dev (= ${binary:Version}),
librust-proxmox-log-0.1.0-dev (= ${binary:Version}),
librust-proxmox-log-0.1.0+default-dev (= ${binary:Version})
Description: Logging infrastructure for proxmox - Rust source code
Source code for Debianized Rust crate "proxmox-log"