1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

util/json-log-path: document unix sockets and concurrency issues

This commit is contained in:
Jörg Thalheim 2025-05-23 10:34:49 +02:00
parent 7240fb198f
commit 7cef4559fe

View file

@ -55,9 +55,11 @@ struct LoggerSettings : Config
Setting<Path> jsonLogPath{
this, "", "json-log-path",
R"(
A path to which JSON records of Nix's log output will be
A file or unix socket to which JSON records of Nix's log output will be
written, in the same format as `--log-format internal-json`
(without the `@nix ` prefixes on each line).
Concurrent writes to the same file by multiple Nix processes are not supported and
may result in interleaved or corrupted log records.
)"};
};