-
Notifications
You must be signed in to change notification settings - Fork 28
File Logging #209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
File Logging #209
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
da1c7d8
file logging setup
ThreeHrSleep 0cce662
Merge branch 'unstable' into logging
ThreeHrSleep af9cb20
Merge branch 'unstable' into logging
ThreeHrSleep 32d29dc
cli stuff
ThreeHrSleep 6106654
oops
ThreeHrSleep 74d64e8
Merge branch 'unstable' into logging
ThreeHrSleep 7bc7d71
supress dep logs
ThreeHrSleep 17a06c2
remove libp2p & discv5 tracing layer + cleanup
ThreeHrSleep 7335131
refactor
ThreeHrSleep b6060b2
Merge branch 'unstable' into logging
ThreeHrSleep ae8df1b
nit
ThreeHrSleep 4242609
fmt+sort
ThreeHrSleep ca3da57
nits
ThreeHrSleep e049681
udeps
ThreeHrSleep 85c6e1b
more nits
ThreeHrSleep 117d59b
suggestions from review
ThreeHrSleep b43d5fd
nit
ThreeHrSleep 8d912ac
add `--logfile-debug-level`
ThreeHrSleep 42cd860
add default logs dir
ThreeHrSleep 459de2b
nit
ThreeHrSleep 2f4c34a
Merge branch 'unstable' into logging
ThreeHrSleep 05ed3d9
lints
ThreeHrSleep 539ec36
libp2p discv5 layer
ThreeHrSleep 9530d77
fmt
ThreeHrSleep 81f8792
review 2
ThreeHrSleep 07976a8
Merge branch 'unstable' into logging
ThreeHrSleep c26a820
Merge branch 'unstable' into logging
ThreeHrSleep 9a1fc2f
ci
ThreeHrSleep 628ecea
Merge branch 'unstable' into logging
ThreeHrSleep 510be2e
tidy up
ThreeHrSleep 4ffb0b2
Merge branch 'unstable' into logging
ThreeHrSleep 3ca34ad
Merge branch 'unstable' into logging
ThreeHrSleep 4d949f2
prevent log mix-up logfiles
ThreeHrSleep 226e518
do subscriber initialization for keygen & keysplitter in main.rs
ThreeHrSleep 02cecfa
default to `Debug` for logfile
ThreeHrSleep eda3059
fix suppressed error
ThreeHrSleep 195a647
fmt
ThreeHrSleep 6078b0c
Merge branch 'unstable' into logging
ThreeHrSleep 7e42957
suggestion
ThreeHrSleep 85e06c2
Merge branch 'unstable' into logging
ThreeHrSleep 69d1aec
nit
ThreeHrSleep File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| // use tracing::{debug, info}; | ||
|
|
||
| mod cli; | ||
| pub mod cli; | ||
| pub mod config; | ||
|
|
||
| use std::{ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| [package] | ||
| name = "logging" | ||
| version = "0.1.0" | ||
| edition = { workspace = true } | ||
| authors = ["Sigma Prime <contact@sigmaprime.io>"] | ||
|
|
||
| [dependencies] | ||
| chrono = { version = "0.4", default-features = false, features = [ | ||
| "clock", | ||
| "std", | ||
| ] } | ||
| clap = { workspace = true } | ||
| logroller = "0.1.8" | ||
| serde = { workspace = true } | ||
| strum = { workspace = true } | ||
| tracing = { workspace = true } | ||
| tracing-appender = "0.2" | ||
| tracing-core = "0.1" | ||
| tracing-subscriber = { workspace = true } | ||
| workspace_members = { workspace = true } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| mod logging; | ||
| mod tracing_libp2p_discv5_layer; | ||
| pub mod utils; | ||
| pub use logging::*; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.