25 #ifndef AOSSL_LOGGING_INCLUDE_LOGGING_INTERFACE_H_ 26 #define AOSSL_LOGGING_INCLUDE_LOGGING_INTERFACE_H_ 28 #include <log4cpp/Category.hh> 32 const int AOSSL_LOG_DEBUG = 0;
33 const int AOSSL_LOG_INFO = 1;
34 const int AOSSL_LOG_ERROR = 2;
40 const char * what_str;
44 int_msg =
"Error in Logging Driver: " + msg;
45 what_str = int_msg.c_str();
52 const char *
what()
const throw() {
68 virtual void debug(std::string msg) = 0;
74 virtual void error(std::string msg) = 0;
80 virtual void info(std::string msg) = 0;
86 virtual void debug(
const char * msg) = 0;
92 virtual void error(
const char * msg) = 0;
98 virtual void info(
const char * msg) = 0;
104 virtual void debug(
int msg) = 0;
110 virtual void error(
int msg) = 0;
116 virtual void info(
int msg) = 0;
122 virtual void debug(
float msg) = 0;
128 virtual void error(
float msg) = 0;
131 virtual void info(
float msg) = 0;
137 virtual void debug(
double msg) = 0;
143 virtual void error(
double msg) = 0;
149 virtual void info(
double msg) = 0;
163 virtual void debug(std::string msg) = 0;
169 virtual void error(std::string msg) = 0;
175 virtual void info(std::string msg) = 0;
181 virtual void debug(
const char * msg) = 0;
187 virtual void error(
const char * msg) = 0;
193 virtual void info(
const char * msg) = 0;
199 virtual void debug(
int msg) = 0;
205 virtual void error(
int msg) = 0;
211 virtual void info(
int msg) = 0;
217 virtual void debug(
float msg) = 0;
223 virtual void error(
float msg) = 0;
229 virtual void info(
float msg) = 0;
235 virtual void debug(
double msg) = 0;
241 virtual void error(
double msg) = 0;
247 virtual void info(
double msg) = 0;
262 #endif // AOSSL_LOGGING_INCLUDE_LOGGING_INTERFACE_H_ A Logging Category instantiated on a standard logging instance.
Definition: logging_interface.h:58
std::string int_msg
An error message passed on initialization.
Definition: logging_interface.h:39
LoggingException(std::string msg)
Create a Logging Exception, and store the given error message.
Definition: logging_interface.h:43
An overall logging interface, which can generate logging categories.
Definition: logging_interface.h:153
Logging Exception, used to store errors passed from the Logger.
Definition: logging_interface.h:37
const char * what() const
Show the error message in readable format.
Definition: logging_interface.h:52