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/filelogger.cpp | |
parent | 5ad9b97fcff193ebce91a923c5006632501abf97 (diff) |
Accept a LogLevel instead of an int in logging methods.
Diffstat (limited to 'src/filelogger.cpp')
-rw-r--r-- | src/filelogger.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/filelogger.cpp b/src/filelogger.cpp index 245cbbaab..acb210ecb 100644 --- a/src/filelogger.cpp +++ b/src/filelogger.cpp @@ -26,8 +26,7 @@ #include "socketengine.h" #include "filelogger.h" -FileLogStream::FileLogStream(int loglevel, FileWriter *fw) - : LogStream(loglevel), f(fw) +FileLogStream::FileLogStream(LogLevel loglevel, FileWriter *fw) : LogStream(loglevel), f(fw) { ServerInstance->Logs->AddLoggerRef(f); } @@ -38,7 +37,7 @@ FileLogStream::~FileLogStream() ServerInstance->Logs->DelLoggerRef(f); } -void FileLogStream::OnLog(int loglevel, const std::string &type, const std::string &text) +void FileLogStream::OnLog(LogLevel loglevel, const std::string &type, const std::string &text) { static std::string TIMESTR; static time_t LAST = 0; |