X-Git-Url: http://git.home-dn.net/?p=manu%2Fsuphp.git;a=blobdiff_plain;f=src%2FLogger.hpp;h=0fa54f440f4163e893c998ec0e69e28b4378f103;hp=3ae4faaef8165830beea05cb9dd4a88d07150e98;hb=849f4a7977b5780eacae8fad7a078d05f4a615ee;hpb=b0eaa3f1fbf491fdc8a3044cf20754f14254338a diff --git a/src/Logger.hpp b/src/Logger.hpp index 3ae4faa..0fa54f4 100644 --- a/src/Logger.hpp +++ b/src/Logger.hpp @@ -24,10 +24,10 @@ namespace suPHP { class Logger; enum LogLevel { - LOGLEVEL_NONE, - LOGLEVEL_ERROR, - LOGLEVEL_WARN, - LOGLEVEL_INFO + LOGLEVEL_NONE, + LOGLEVEL_ERROR, + LOGLEVEL_WARN, + LOGLEVEL_INFO }; }; @@ -46,51 +46,51 @@ namespace suPHP { */ class Logger { private: - LogLevel logLevel; - - /** - * Internal log function - */ - virtual void log(const std::string& classification, - const std::string& message) =0; - + LogLevel logLevel; + + /** + * Internal log function + */ + virtual void log(const std::string& classification, + const std::string& message) =0; + protected: - /** - * Set log level - */ - virtual void setLogLevel(LogLevel level); + /** + * Set log level + */ + virtual void setLogLevel(LogLevel level); public: - /*** - * Get log level - */ - virtual LogLevel getLogLevel(); + /*** + * Get log level + */ + virtual LogLevel getLogLevel(); - /** - * Initialize (open logfile) - */ - virtual void init(const Configuration& config) throw (IOException) =0; - - /** - * Check wheter Logger has been initialized - */ - virtual bool isInitialized() =0; - - /** - * Logs info message - */ - virtual void logInfo(const std::string& message); + /** + * Initialize (open logfile) + */ + virtual void init(const Configuration& config) throw (IOException) =0; + + /** + * Check wheter Logger has been initialized + */ + virtual bool isInitialized() =0; + + /** + * Logs info message + */ + virtual void logInfo(const std::string& message); - /** - * Logs warning - */ - virtual void logWarning(const std::string& message); - - /** - * Logs error - */ - virtual void logError(const std::string& message); + /** + * Logs warning + */ + virtual void logWarning(const std::string& message); + + /** + * Logs error + */ + virtual void logError(const std::string& message); }; };