summaryrefslogtreecommitdiff
path: root/src/LogFactory.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-01-05 18:48:09 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-01-05 18:48:09 +0900
commitd6000024c0998df64895f2fd4c0f7458ea07a8f3 (patch)
treea4fbe349f59a01faf95b5907df74a6814fe25619 /src/LogFactory.h
parentf019eae5df7955c544e491517c4e1391a3c3f11e (diff)
Added --console-log-level option
--console-log-level option sets log level to output to console.
Diffstat (limited to 'src/LogFactory.h')
-rw-r--r--src/LogFactory.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/LogFactory.h b/src/LogFactory.h
index 99f1fc14..b80aadd8 100644
--- a/src/LogFactory.h
+++ b/src/LogFactory.h
@@ -50,6 +50,7 @@ private:
static SharedHandle<Logger> logger_;
static bool consoleOutput_;
static Logger::LEVEL logLevel_;
+ static Logger::LEVEL consoleLogLevel_;
static void openLogger(const SharedHandle<Logger>& logger);
@@ -77,17 +78,28 @@ public:
}
/**
- * Set log level to output.
+ * Set log level to output to file.
*/
static void setLogLevel(Logger::LEVEL level);
/**
- * Set log level to output by string represention of log level.
- * Possible values are: debug, info, notice, warn, error
+ * Set log level to output to file by string represention of log
+ * level. Possible values are: debug, info, notice, warn, error
*/
static void setLogLevel(const std::string& level);
/**
+ * Set log level to output to console.
+ */
+ static void setConsoleLogLevel(Logger::LEVEL level);
+
+ /**
+ * Set log level to output to console by string represention of log
+ * level. Possible values are: debug, info, notice, warn, error
+ */
+ static void setConsoleLogLevel(const std::string& level);
+
+ /**
* Releases used resources
*/
static void release();