mirror of
https://github.com/NixOS/nix
synced 2025-07-03 06:11:46 +02:00
showTrace flag in loggers
This commit is contained in:
parent
ef24a0835d
commit
8f81fae116
10 changed files with 60 additions and 20 deletions
|
@ -22,11 +22,11 @@ LogFormat parseLogFormat(const std::string & logFormatStr) {
|
|||
Logger * makeDefaultLogger() {
|
||||
switch (defaultLogFormat) {
|
||||
case LogFormat::raw:
|
||||
return makeSimpleLogger(false);
|
||||
return makeSimpleLogger(false, false);
|
||||
case LogFormat::rawWithLogs:
|
||||
return makeSimpleLogger(true);
|
||||
return makeSimpleLogger(true, false);
|
||||
case LogFormat::internalJson:
|
||||
return makeJSONLogger(*makeSimpleLogger());
|
||||
return makeJSONLogger(*makeSimpleLogger(true, false));
|
||||
case LogFormat::bar:
|
||||
return makeProgressBar();
|
||||
case LogFormat::barWithLogs:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue