1 #include "../icedb/logging.hpp" 6 #include "../icedb/misc/os_functions.h" 11 std::shared_ptr<std::ofstream>
lOut;
17 const std::string &channel,
18 const std::string &message,
21 emit_log(channel.c_str(), message.c_str(), p);
34 std::ostringstream out;
35 out << channel <<
" - " << message << std::endl;
56 lOut = std::shared_ptr<std::ofstream>(
new std::ofstream(
logFile.c_str()));
std::shared_ptr< std::ofstream > lOut
void register_log_handler(log_handler_ft p)
icedb::logging::log_handler_ft logHandler
void ICEDB_writeDebugString(const char *c)
void emit_log(const std::string &channel, const std::string &message, PRIORITIES p)
void(* log_handler_ft)(const char *, const char *, PRIORITIES)
void setupLogging(int argc, char **argv, const log_properties *lps)