summaryrefslogtreecommitdiff
path: root/src/lib/log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/log.cc')
-rw-r--r--src/lib/log.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/log.cc b/src/lib/log.cc
index 650384bc7..06cff0495 100644
--- a/src/lib/log.cc
+++ b/src/lib/log.cc
@@ -76,6 +76,19 @@ Log::set_level (Level l)
_level = l;
}
+void
+Log::set_level (string l)
+{
+ if (l == "verbose") {
+ set_level (VERBOSE);
+ return;
+ } else if (l == "timing") {
+ set_level (TIMING);
+ return;
+ }
+
+ set_level (STANDARD);
+}
/** @param file Filename to write log to */
FileLog::FileLog (string file)