Move logging config to main configuration file.
- Move the content of what was stored in log4rs.yml into the main config file, so that there is just one file to parse to get the complete configuration. - Create the global switch `--home` to pass/overload the value for SEQUOIA_HOME in the configuration file.
This commit is contained in:
+21
-2
@@ -5,6 +5,25 @@ connection = "localhost:3000"
|
||||
|
||||
sequoia_home = "/tmp/sq_home"
|
||||
|
||||
logfile_config = "./config/log4rs.yml"
|
||||
#keyservers = [ "hkps://keys.openpgp.org/", "hkps://mail-api.proton.me", "hkps://keys.mailvelope.com", "hkps://keyserver.ubuntu.com", "hkps://sks.pod01.fleetstreetops.com" ]
|
||||
keyservers = [ "hkp://example.com" ]
|
||||
|
||||
[logging.appenders.console]
|
||||
kind = "console"
|
||||
[logging.appenders.console.encoder]
|
||||
pattern = "{d(%Y-%m-%d %H:%M:%S)(local)} {h({l})} [{t}] {m}{n}"
|
||||
|
||||
[logging.appenders.file]
|
||||
kind = "file"
|
||||
path = "/tmp/husk.log"
|
||||
|
||||
[logging.appenders.file.encoder]
|
||||
pattern = "{d(%Y-%m-%d %H:%M:%S)(local)} {h({l})} [{t}] {m}{n}"
|
||||
|
||||
[logging.root]
|
||||
level = "debug"
|
||||
appenders = ["file"]
|
||||
|
||||
[logging.loggers."husk"]
|
||||
level = "debug"
|
||||
|
||||
keyservers = [ "hkps://keys.openpgp.org/", "hkps://mail-api.proton.me", "hkps://keys.mailvelope.com", "hkps://keyserver.ubuntu.com", "hkps://sks.pod01.fleetstreetops.com" ]
|
||||
|
||||
Reference in New Issue
Block a user