Skip to content

Commit

Permalink
feat(log): custom log format [fixes NET-724 NET-725] (#2218)
Browse files Browse the repository at this point in the history
feat(log): custom log format
  • Loading branch information
gurinderu authored Apr 4, 2024
1 parent 3f17b11 commit 41faf0b
Show file tree
Hide file tree
Showing 12 changed files with 488 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,4 @@ particle-node/spell

# autogenerated from .proto
crates/cid-utils/src/unixfs.rs
.env
37 changes: 36 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ members = [
"crates/chain-data",
"crates/types",
"crates/core-manager",
"crates/log-format",
]
exclude = [
"nox/tests/tetraplets",
Expand Down Expand Up @@ -102,6 +103,7 @@ chain-listener = { path = "crates/chain-listener" }
chain-connector = { path = "crates/chain-connector" }
types = { path = "crates/types" }
core-manager = { path = "crates/core-manager" }
log-format = { path = "crates/log-format" }

# spell
fluence-spell-dtos = "=0.7.5"
Expand Down
15 changes: 15 additions & 0 deletions crates/log-format/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "log-format"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
tracing = { workspace = true, features = ["async-await", "log"] }
tracing-subscriber = { workspace = true, features = ["parking_lot", "env-filter", "smallvec"] }
nu-ansi-term = "0.50.0"
tracing-log = "0.2.0"

[dev-dependencies]
tracing = { workspace = true, features = ["std"] }
Loading

0 comments on commit 41faf0b

Please sign in to comment.