diff options
| author | Paweł Palenica <pawelpalenica11@gmail.com> | 2021-07-07 23:27:07 -0700 |
|---|---|---|
| committer | Paweł Palenica <pawelpalenica11@gmail.com> | 2021-07-07 23:27:07 -0700 |
| commit | ba21b86435a390342893dc0e43a69532fc39bb77 (patch) | |
| tree | c7ae199ddf6e9fdc75cf5b6bf3ccf852ea329048 | |
| parent | Add test case for malformed input and detect too long messages (diff) | |
| download | sl0ppij-ba21b86435a390342893dc0e43a69532fc39bb77.tar.gz sl0ppij-ba21b86435a390342893dc0e43a69532fc39bb77.tar.xz sl0ppij-ba21b86435a390342893dc0e43a69532fc39bb77.zip | |
Cleanup log config file a bit, make format verbose so everyone can understand it without looking into log4rs docs
| -rw-r--r-- | zellij-utils/assets/config/log4rs.yml | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/zellij-utils/assets/config/log4rs.yml b/zellij-utils/assets/config/log4rs.yml index a10aec55..01934f40 100644 --- a/zellij-utils/assets/config/log4rs.yml +++ b/zellij-utils/assets/config/log4rs.yml @@ -7,34 +7,37 @@ appenders: kind: console target: stderr + # default zellij appender, should be used across most of the codebase. logFile: kind: file path: "zellij.log" append: false encoder: - pattern: "{h(|{M}| {d} {l} [{T}] [{f}:{L}]: {m})} {n}" + # {n} means platform dependent newline + pattern: "|{module}| {date} {highlight({level})} [{thread}] [{file}:{line}]: {message} {n}" + # plugin appender. To be used in decorating_pipe to forward stderr output from plugins. logPlugin: kind: file path: "zellij.log" encoder: - pattern: "{m} {n}" + # {n} means platform dependent newline + pattern: "{message} {n}" - # An appender named "requests" that writes to a file with a custom pattern encoder - requests: - kind: file - path: "requests.log" - encoder: - pattern: "{d} - {m}{n}" - -# Set the default logging level to "warn" and attach the "stdout" appender to the root +# Set the default logging level to "info" and log it to zellij.log file root: level: info appenders: - logFile loggers: - # Raise the maximum log level for events sent to the "app::backend::db" logger to "info" + # decrease verbosity for this module because it has a lot of useless info logs + wasmer_compiler_cranelift: + level: warn + appenders: + - logFile + + # For decorating_pipe, we use custom format as we use logging macros to forward stderr output from plugins zellij_server::decorating_pipe: level: trace appenders: |
