2020-06-05 15:01:02 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "types.hh"
|
|
|
|
|
|
|
|
namespace nix {
|
|
|
|
|
|
|
|
enum class LogFormat {
|
|
|
|
raw,
|
2020-06-05 16:20:11 +00:00
|
|
|
rawWithLogs,
|
2020-06-05 15:01:02 +00:00
|
|
|
internalJson,
|
|
|
|
bar,
|
|
|
|
barWithLogs,
|
|
|
|
};
|
|
|
|
|
|
|
|
void setLogFormat(const string &logFormatStr);
|
|
|
|
void setLogFormat(const LogFormat &logFormat);
|
|
|
|
|
|
|
|
void createDefaultLogger();
|
|
|
|
|
|
|
|
}
|