Static Public Member Functions | Private Member Functions | Private Attributes
icl_core::logging::SQLiteLogOutput Class Reference

#include <SQLiteLogOutput.h>

Inheritance diagram for icl_core::logging::SQLiteLogOutput:
Inheritance graph
[legend]

List of all members.

Static Public Member Functions

static LogOutputStreamcreate (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

SQLiteLogDbm_db

Detailed Description

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.


Constructor & Destructor Documentation

icl_core::logging::SQLiteLogOutput::SQLiteLogOutput ( const icl_core::String name,
const icl_core::String config_prefix,
icl_core::logging::LogLevel  log_level 
) [private]

Definition at line 41 of file SQLiteLogOutput.cpp.

Definition at line 59 of file SQLiteLogOutput.cpp.


Member Function Documentation

Creates a new SQLite log output stream object.

Definition at line 35 of file SQLiteLogOutput.cpp.

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.

void icl_core::logging::SQLiteLogOutput::onStart ( ) [private, virtual]

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.

void icl_core::logging::SQLiteLogOutput::pushImpl ( const LogMessage log_message) [private, virtual]

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.


Member Data Documentation

Definition at line 61 of file SQLiteLogOutput.h.


The documentation for this class was generated from the following files:


fzi_icl_core
Author(s):
autogenerated on Tue Aug 8 2017 02:28:05