Import upstream 0.7.1
[manu/suphp.git] / src / Logger.hpp
index 3ae4faa..0fa54f4 100644 (file)
@@ -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);
     };
 };