47 if (!icl_core::config::get<icl_core::String>(config_prefix +
"/FileName", db_filename))
49 std::cerr <<
"SQLite log output: No filename specified for SQLite log output stream " Contains icl_logging::SQLiteLogOutput.
icl_core::TimeStamp timestamp
char filename[cMAX_DESCRIPTION_LENGTH+1]
SQLiteLogOutput(const icl_core::String &name, const icl_core::String &config_prefix, icl_core::logging::LogLevel log_level)
virtual void pushImpl(const LogMessage &log_message)
Base header file for the configuration framework.
icl_core::logging::LogLevel log_level
#define REGISTER_LOG_OUTPUT_STREAM(name, factory)
bool get< bool >(const icl_core::String &key, bool &value)
Template specialization for boolean values.
void writeLogLine(const char *app_id, const char *timestamp, const char *log_stream, const char *log_level, const char *filename, size_t line, const char *class_name, const char *object_name, const char *function_name, const char *message_text)
ThreadStream & endl(ThreadStream &stream)
char message_text[cDEFAULT_LOG_SIZE+1]
char object_name[cMAX_DESCRIPTION_LENGTH+1]
This is an output stream class for log messages.
char class_name[cMAX_IDENTIFIER_LENGTH+1]
char function_name[cMAX_IDENTIFIER_LENGTH+1]
char log_stream[cMAX_IDENTIFIER_LENGTH+1]
static LogOutputStream * create(const icl_core::String &name, const icl_core::String &config_prefix, icl_core::logging::LogLevel log_level=cDEFAULT_LOG_LEVEL)
const char * logLevelDescription(LogLevel log_level)
virtual ~SQLiteLogOutput()
Defines an entry for the message queue.
virtual void onShutdown()
String formatIso8601() const