summaryrefslogtreecommitdiff
path: root/src/Logger.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/Logger.h')
-rw-r--r--src/Logger.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Logger.h b/src/Logger.h
index eaa77c5..e9bcb23 100644
--- a/src/Logger.h
+++ b/src/Logger.h
@@ -53,7 +53,9 @@ private:
static void logger_release()
{
if (mInstHandle) {
- DUMMY("Logger Released.");
+ if (Logger::instance()->get_level() >= Logger::INFO) {
+ DUMMY("Logger Released.");
+ }
delete mInstHandle;
}
};
@@ -62,7 +64,7 @@ public:
enum { NONE = 0, ERROR, WARNING, INFO, DEBUG, LOG };
#ifndef _DISABLE_LOGGER
- bool init(const char* aFileName = 0, int aLogLevel = Logger::ERROR, bool aWithTimestamp = true, const char* aVersion = 0);
+ bool init(const char* aFileName = 0, int aLogLevel = Logger::ERROR, bool aWithTimestamp = false);
void log(const char* aFormat, ...);
void log(int aLogLevel, const char* aFormat, ...);