nix: add log_format
option to the module
Some checks failed
Tag latest version / tag-release (push) Has been cancelled
Some checks failed
Tag latest version / tag-release (push) Has been cancelled
This commit is contained in:
parent
6f6a60f667
commit
fffc6fa5f9
1 changed files with 7 additions and 0 deletions
|
@ -30,6 +30,7 @@ self: {
|
|||
config_dir = "${cfg.stateDir}/conf";
|
||||
cache_dir = cfg.cacheDir;
|
||||
disable_metrics = cfg.disableMetrics;
|
||||
log_format = cfg.logFormat;
|
||||
});
|
||||
in {
|
||||
###### interface
|
||||
|
@ -134,6 +135,12 @@ in {
|
|||
description = "Logging level for the Eris service.";
|
||||
};
|
||||
|
||||
logFormat = mkOption {
|
||||
type = enum ["plain" "pretty" "json" "pretty-json"];
|
||||
default = "pretty";
|
||||
description = "Logging format for Eris.";
|
||||
};
|
||||
|
||||
user = mkOption {
|
||||
type = str;
|
||||
default = "eris";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue