diff options
author | Peter Powell <petpow@saberuk.com> | 2013-04-19 06:26:50 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2013-05-19 03:22:41 +0100 |
commit | ac726c8896d3bb136d6da854bd728118e75ec914 (patch) | |
tree | 46c947fdf94d987828431c0688b49f0707d41709 /include | |
parent | 3ce33ee0e6bc0b8fbe2a564a37e02d2e56510b06 (diff) |
Move LogLevel enum from filelogger to logger.
Diffstat (limited to 'include')
-rw-r--r-- | include/filelogger.h | 15 | ||||
-rw-r--r-- | include/logger.h | 11 |
2 files changed, 11 insertions, 15 deletions
diff --git a/include/filelogger.h b/include/filelogger.h index 091dc9a03..94456fecc 100644 --- a/include/filelogger.h +++ b/include/filelogger.h @@ -22,21 +22,6 @@ #include "logger.h" -/** Logging levels for use with InspIRCd::Log() - * */ -enum LogLevel -{ - LOG_RAWIO = 5, - LOG_DEBUG = 10, - LOG_VERBOSE = 20, - LOG_DEFAULT = 30, - LOG_SPARSE = 40, - LOG_NONE = 50 -}; - -/* Forward declaration -- required */ -class InspIRCd; - /** A logging class which logs to a streamed file. */ class CoreExport FileLogStream : public LogStream diff --git a/include/logger.h b/include/logger.h index 7b4c45f1c..0f95ad873 100644 --- a/include/logger.h +++ b/include/logger.h @@ -20,6 +20,17 @@ #pragma once +/** Levels at which messages can be logged. */ +enum LogLevel +{ + LOG_RAWIO = 5, + LOG_DEBUG = 10, + LOG_VERBOSE = 20, + LOG_DEFAULT = 30, + LOG_SPARSE = 40, + LOG_NONE = 50 +}; + /** Simple wrapper providing periodic flushing to a disk-backed file. */ class CoreExport FileWriter |