bref
API 2014 of the Zia HTTP server.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
/Users/giersc_v/projets/zia/api/include/bref/ILogger.h
Go to the documentation of this file.
00001 
00011 #ifndef BREF_API_ILOGGER_H
00012 #define BREF_API_ILOGGER_H
00013 
00014 #include <string>
00015 
00016 namespace bref {
00017 
00027 class ILogger
00028 {
00029 public:
00033   enum Severity {
00034     Debug,      
00035     Info,       
00036     Warning,    
00037     Error,      
00038     Fatal       
00039   };
00040 
00044   virtual ~ILogger() { }
00045 
00053   virtual Severity severity() const = 0;
00054 
00063   virtual void setSeverity(Severity newSeverity) = 0;
00064 
00077   virtual void log(Severity severity, const std::string & message) = 0;
00078 };
00079 
00080 } // ! bref
00081 
00082 #endif /* !BREF_API_ILOGGER_H */