mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Make the logger customisable
Add a new `--log-format` cli argument to change the format of the logs. The possible values are - raw (the default one for old-style commands) - bar (the default one for new-style commands) - bar-with-logs (equivalent to `--print-build-logs`) - internal-json (the internal machine-readable json format)
This commit is contained in:
parent
d558fb98f6
commit
170e86dff5
12 changed files with 107 additions and 13 deletions
|
@ -1446,6 +1446,8 @@ static int _main(int argc, char * * argv)
|
|||
|
||||
globals.state->printStats();
|
||||
|
||||
logger->stop();
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue