nixos: add services.foundationdb.traceFormat option
This allows us to specify JSON trace logging, which is useful for tooling to injest/transform logs. Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
3f1c6801a2
commit
c55b9236f0
@ -35,6 +35,7 @@ let
|
||||
${optionalString (cfg.class != null) "class = ${cfg.class}"}
|
||||
memory = ${cfg.memory}
|
||||
storage_memory = ${cfg.storageMemory}
|
||||
trace_format = ${cfg.traceFormat}
|
||||
|
||||
${optionalString (cfg.tls != null) ''
|
||||
tls_plugin = ${pkg}/libexec/plugins/FDBLibTLS.so
|
||||
@ -317,6 +318,12 @@ in
|
||||
default = "/run/foundationdb.pid";
|
||||
description = "Path to pidfile for fdbmonitor.";
|
||||
};
|
||||
|
||||
traceFormat = mkOption {
|
||||
type = types.enum [ "xml" "json" ];
|
||||
default = "xml";
|
||||
description = "Trace logging format.";
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
Loading…
Reference in New Issue
Block a user