feat: start adding structured logging to cib
This is the smallest useful change to add structured logging. It adds little useful logging, but builds a foundation for adding more useful logging later, and for converging existing log messages to structured one later.
Add some acceptance criteria for structured logging so that we do not accidentally change the log messages we really, really care about.
Add dependencies on the slog and slog-json crates, which exist precisely for structured logging.
Signed-off-by: Lars Wirzenius liw@liw.fi
7 files changed
+144
-0
f75a78e8
→
402d58ee
modified Cargo.lock
@@ -1734,6 +1734,8 @@ dependencies = [
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -2183,6 +2185,24 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified Cargo.toml
@@ -22,6 +22,8 @@ regex = "1.10.5"
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified ci-broker.md
@@ -991,3 +991,81 @@ when I run cibtool --db x.db run show x
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified ci-broker.subplot
@@ -12,3 +12,5 @@ bindings:
|
|
|
|
|
|
| + | |
| + | |
modified src/bin/cib.rs
@@ -19,6 +19,7 @@ use radicle_ci_broker::{
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -26,6 +27,9 @@ use radicle_ci_broker::{
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -33,8 +37,11 @@ fn main() {
|
|
|
|
|
|
| + | |
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified src/lib.rs
@@ -10,6 +10,7 @@ pub mod broker;
|
|
|
|
|
|
| + | |
|
|
|
|
|
added src/logger.rs
@@ -0,0 +1,34 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |