aboutsummaryrefslogtreecommitdiff
path: root/src/libmain/common-args.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-25 15:26:07 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-04-25 19:18:45 +0200
commit41633f9f73f402714dccb4a7f379441ee8272619 (patch)
treeec5ff0129865356552f340ed099d88e164bcb4ec /src/libmain/common-args.cc
parentc879a20850f2035cd87b1693da26cadf30affe11 (diff)
Improved logging abstraction
This also gets rid of --log-type, since the nested log type isn't useful in a multi-threaded situation, and nobody cares about the "pretty" log type.
Diffstat (limited to 'src/libmain/common-args.cc')
-rw-r--r--src/libmain/common-args.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libmain/common-args.cc b/src/libmain/common-args.cc
index 9219f380c..98693d78a 100644
--- a/src/libmain/common-args.cc
+++ b/src/libmain/common-args.cc
@@ -18,15 +18,6 @@ MixCommonArgs::MixCommonArgs(const string & programName)
verbosity = lvlDebug;
});
- mkFlag1(0, "log-type", "type", "set logging format ('pretty', 'flat', 'systemd')",
- [](std::string s) {
- if (s == "pretty") logType = ltPretty;
- else if (s == "escapes") logType = ltEscapes;
- else if (s == "flat") logType = ltFlat;
- else if (s == "systemd") logType = ltSystemd;
- else throw UsageError("unknown log type");
- });
-
mkFlag(0, "option", {"name", "value"}, "set a Nix configuration option (overriding nix.conf)", 2,
[](Strings ss) {
auto name = ss.front(); ss.pop_front();