mirror of
https://github.com/NixOS/nix
synced 2025-06-30 15:48:00 +02:00
Add json-log-path
setting
This setting specifies a path (which can be a regular file or Unix domain socket) that receives a copy of all Nix log messages (in JSON format).
This commit is contained in:
parent
0087188d47
commit
7240fb198f
8 changed files with 200 additions and 5 deletions
|
@ -15,6 +15,7 @@
|
|||
#include "nix/store/derivations.hh"
|
||||
#include "nix/util/args.hh"
|
||||
#include "nix/util/git.hh"
|
||||
#include "nix/util/logging.hh"
|
||||
|
||||
#ifndef _WIN32 // TODO need graceful async exit support on Windows?
|
||||
# include "nix/util/monitor-fd.hh"
|
||||
|
@ -1050,6 +1051,7 @@ void processConnection(
|
|||
if (!recursive) {
|
||||
prevLogger_ = std::move(logger);
|
||||
logger = std::move(tunnelLogger_);
|
||||
applyJSONLogger();
|
||||
}
|
||||
|
||||
unsigned int opCount = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue