#include <SQLiteLogOutput.h>
Static Public Member Functions | |
static LogOutputStream * | create (const icl_core::String &name, const icl_core::String &config_prefix, icl_core::logging::LogLevel log_level=cDEFAULT_LOG_LEVEL) |
Private Member Functions | |
virtual void | onShutdown () |
virtual void | onStart () |
virtual void | pushImpl (const LogMessage &log_message) |
SQLiteLogOutput (const icl_core::String &name, const icl_core::String &config_prefix, icl_core::logging::LogLevel log_level) | |
virtual | ~SQLiteLogOutput () |
Private Attributes | |
SQLiteLogDb * | m_db |
Additional Inherited Members | |
Public Member Functions inherited from icl_core::logging::LogOutputStream | |
void | changeLogFormat (const char *format) |
void | changeTimeFormat (const char *format) |
icl_core::logging::LogLevel | getLogLevel () const |
LogOutputStream (const icl_core::String &name, const icl_core::String &config_prefix, icl_core::logging::LogLevel log_level, bool use_worker_thread=true) | |
icl_core::String | name () const |
void | printConfiguration () const |
void | push (icl_core::logging::LogLevel log_level, const char *log_stream_description, const char *filename, int line, const char *classname, const char *objectname, const char *function, const char *text) |
void | setLogLevel (icl_core::logging::LogLevel log_level) |
void | shutdown () |
void | start () |
Starts the worker thread of the log output stream. More... | |
virtual | ~LogOutputStream () |
Protected Member Functions inherited from icl_core::logging::LogOutputStream | |
LogOutputStream (const icl_core::String &name, icl_core::logging::LogLevel log_level, bool use_worker_thread=true) | |
Protected Member Functions inherited from icl_core::Noncopyable | |
Noncopyable () | |
virtual | ~Noncopyable () |
An output stream which writes log messages to a SQLite database.
This class is implemented as a singleton so that only one instance can exist in any process.
Definition at line 42 of file SQLiteLogOutput.h.
|
private |
Definition at line 41 of file SQLiteLogOutput.cpp.
|
privatevirtual |
Definition at line 59 of file SQLiteLogOutput.cpp.
|
static |
Creates a new SQLite log output stream object.
Definition at line 35 of file SQLiteLogOutput.cpp.
|
privatevirtual |
This virtual function is called from the worker thread just before it ends execution. It can be used by output stream implementations to do cleanup work, which has to be performed in the worker thread.
Reimplemented from icl_core::logging::LogOutputStream.
Definition at line 78 of file SQLiteLogOutput.cpp.
|
privatevirtual |
This virtual function is called from the worker thread just after it has been started. It can be used by output stream implementations to do initializations, which have to be performed in the worker thread.
Reimplemented from icl_core::logging::LogOutputStream.
Definition at line 65 of file SQLiteLogOutput.cpp.
|
privatevirtual |
This virtual function is called with an unformatted log message. It can be overridden by output streams, which need to process the individual fields of a log message.
The default implementation formats the log message according to the configured message format and calls pushImpl(const char*) for further processing.
Reimplemented from icl_core::logging::LogOutputStream.
Definition at line 70 of file SQLiteLogOutput.cpp.
|
private |
Definition at line 61 of file SQLiteLogOutput.h.