#include <SQLiteLogDb.h>
Public Member Functions | |
void | closeDatabase () |
void | openDatabase () |
SQLiteLogDb (const icl_core::String &db_filename, bool rotate) | |
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) |
~SQLiteLogDb () | |
Private Attributes | |
sqlite3 * | m_db |
icl_core::String | m_db_filename |
sqlite3_stmt * | m_insert_stmt |
int64_t | m_last_rotation |
bool | m_rotate |
Static Private Attributes | |
static icl_core::String | m_create_sql = "line INTEGER, class_name TEXT, object_name TEXT, function_name TEXT, message TEXT)" |
static icl_core::String | m_insert_sql = ":line, :class_name, :object_name, :function_name, :message)" |
Definition at line 37 of file SQLiteLogDb.h.
icl_core::logging::SQLiteLogDb::SQLiteLogDb | ( | const icl_core::String & | db_filename, |
bool | rotate | ||
) |
Definition at line 40 of file SQLiteLogDb.cpp.
Definition at line 49 of file SQLiteLogDb.cpp.
Definition at line 127 of file SQLiteLogDb.cpp.
Definition at line 54 of file SQLiteLogDb.cpp.
void icl_core::logging::SQLiteLogDb::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 | ||
) |
Definition at line 142 of file SQLiteLogDb.cpp.
icl_core::String icl_core::logging::SQLiteLogDb::m_create_sql = "line INTEGER, class_name TEXT, object_name TEXT, function_name TEXT, message TEXT)" [static, private] |
Definition at line 58 of file SQLiteLogDb.h.
sqlite3* icl_core::logging::SQLiteLogDb::m_db [private] |
Definition at line 52 of file SQLiteLogDb.h.
Definition at line 51 of file SQLiteLogDb.h.
icl_core::String icl_core::logging::SQLiteLogDb::m_insert_sql = ":line, :class_name, :object_name, :function_name, :message)" [static, private] |
Definition at line 59 of file SQLiteLogDb.h.
sqlite3_stmt* icl_core::logging::SQLiteLogDb::m_insert_stmt [private] |
Definition at line 53 of file SQLiteLogDb.h.
Definition at line 56 of file SQLiteLogDb.h.
bool icl_core::logging::SQLiteLogDb::m_rotate [private] |
Definition at line 55 of file SQLiteLogDb.h.