summaryrefslogtreecommitdiffstats
path: root/src/Common/Logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Common/Logger.cpp')
-rw-r--r--src/Common/Logger.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Common/Logger.cpp b/src/Common/Logger.cpp
index 859a77d..6206b59 100644
--- a/src/Common/Logger.cpp
+++ b/src/Common/Logger.cpp
@@ -86,5 +86,12 @@ void Logger::logf(const char *format, ...) {
va_end(ap);
}
+void Logger::setAllCategories() {
+ static const MessageCategory categoryList[] = {SYSTEM, NETWORK, DAEMON, USER, DISK, PROGRAM, GENERAL};
+
+ for(unsigned int i = 0; i < sizeof(categoryList)/sizeof(categoryList[0]); ++i)
+ setCategory(categoryList[i]);
+}
+
}
}