24 #include <log4cpp/Category.hh> 30 static Logger &instance( std::string log_file =
"/dev/null" , std::string category =
"logger" ) {
31 static Logger logger( log_file, category );
35 void initialise( std::string log_file, std::string category );
37 static int getPriorityValue(
const std::string& priority );
38 void log(
int priority,
const std::string &message );
40 void fatal(
const std::string& message );
41 void emerg(
const std::string& message );
42 void alert(
const std::string& message );
43 void crit(
const std::string& message );
44 void error(
const std::string& message );
45 void warn(
const std::string& message );
46 void notice(
const std::string& message );
47 void info(
const std::string& message );
48 void debug(
const std::string& message );
51 log4cpp::Category * LOGGER;
53 Logger( std::string log_file, std::string category );