-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97c28c9
commit ed8f8e8
Showing
12 changed files
with
517 additions
and
38 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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,71 @@ | ||
# A sample log configuration file for running in release mode. By default, this configuration splits up log messages to | ||
# three destinations: | ||
# * Console: For log messages with level INFO and higher | ||
# * log/base-node/network.log: INFO-level logs related to the comms crate. This file will be quite busy since there | ||
# are lots of P2P debug messages, and so this traffic is segregated from the application log messages | ||
# * log/base-node/base_layer.log: Non-comms related INFO-level messages and higher are logged into this file | ||
# * log/base-node/other.log: Third-party crates' messages will be logged here at an ERROR level | ||
# | ||
# See https://docs.rs/log4rs/0.8.3/log4rs/encode/pattern/index.html for deciphering the log pattern. The log format | ||
# used in this sample configuration prints messages as: | ||
# timestamp [target] LEVEL message | ||
refresh_rate: 30 seconds | ||
appenders: | ||
# An appender named "stdout" that writes to stdout | ||
stdout: | ||
kind: console | ||
encoder: | ||
pattern: "{d(%H:%M)} {h({l}):5} {m}{n}" | ||
filters: | ||
- kind: threshold | ||
level: warn | ||
|
||
|
||
|
||
# An appender named "base_layer" that writes to a file with a custom pattern encoder | ||
default: | ||
kind: rolling_file | ||
path: "{{log_dir}}/universe/universe.log" | ||
policy: | ||
kind: compound | ||
trigger: | ||
kind: size | ||
limit: 10mb | ||
roller: | ||
kind: fixed_window | ||
base: 1 | ||
count: 5 | ||
pattern: "{{log_dir}}/universe/universe.{}.log" | ||
encoder: | ||
pattern: "{d(%Y-%m-%d %H:%M:%S.%f)} {l:5} {m} // {f}:{L}{n}" | ||
|
||
# An appender named "other" that writes to a file with a custom pattern encoder | ||
other: | ||
kind: rolling_file | ||
path: "{{log_dir}}/universe/other.log" | ||
policy: | ||
kind: compound | ||
trigger: | ||
kind: size | ||
limit: 10mb | ||
roller: | ||
kind: fixed_window | ||
base: 1 | ||
count: 5 | ||
pattern: "{{log_dir}}/universe/other.{}.log" | ||
encoder: | ||
pattern: "{d(%Y-%m-%d %H:%M:%S.%f)} {l:5} {m}{n} // {f}:{L} " | ||
|
||
# Set the default logging level to "info" | ||
root: | ||
level: info | ||
appenders: | ||
- stdout | ||
|
||
loggers: | ||
# Route log events common to every application to all appenders | ||
tari::universe: | ||
level: debug | ||
appenders: | ||
- default | ||
|
This file contains 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 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 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 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 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 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 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 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
Oops, something went wrong.