diff options
author | Peter Powell <petpow@saberuk.com> | 2013-04-19 10:26:54 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2013-05-19 17:11:57 +0100 |
commit | b1806589625beb5f189f7fe675073f5aa105f814 (patch) | |
tree | 0b72870c83030aa2458130b504d62fe19536f512 /src/logger.cpp | |
parent | 5ad9b97fcff193ebce91a923c5006632501abf97 (diff) |
Accept a LogLevel instead of an int in logging methods.
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index bc1dd3253..c83a423f0 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -21,7 +21,6 @@ #include "inspircd.h" - #include "filelogger.h" /* @@ -86,7 +85,7 @@ void LogManager::OpenFileLogs() } std::string type = tag->getString("type"); std::string level = tag->getString("level"); - int loglevel = LOG_DEFAULT; + LogLevel loglevel = LOG_DEFAULT; if (level == "rawio") { loglevel = LOG_RAWIO; @@ -297,7 +296,7 @@ bool LogManager::DelLogType(const std::string &type, LogStream *l) return true; } -void LogManager::Log(const std::string &type, int loglevel, const char *fmt, ...) +void LogManager::Log(const std::string &type, LogLevel loglevel, const char *fmt, ...) { if (Logging) { @@ -314,7 +313,7 @@ void LogManager::Log(const std::string &type, int loglevel, const char *fmt, ... this->Log(type, loglevel, std::string(buf)); } -void LogManager::Log(const std::string &type, int loglevel, const std::string &msg) +void LogManager::Log(const std::string &type, LogLevel loglevel, const std::string &msg) { if (Logging) { |