From ac726c8896d3bb136d6da854bd728118e75ec914 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Fri, 19 Apr 2013 06:26:50 +0100 Subject: Move LogLevel enum from filelogger to logger. --- include/filelogger.h | 15 --------------- include/logger.h | 11 +++++++++++ 2 files changed, 11 insertions(+), 15 deletions(-) (limited to 'include') 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 -- cgit v1.2.3