#include <UdpLogOutput.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 | |
icl_core::String | escape (icl_core::String str) const |
virtual void | pushImpl (const LogMessage &log_message) |
UdpLogOutput (const icl_core::String &name, const icl_core::String &config_prefix, icl_core::logging::LogLevel log_level) | |
virtual | ~UdpLogOutput () |
Private Attributes | |
int | m_socket |
icl_core::String | m_system_name |
An output stream which streams to a file.
This class is implemented as a singleton so that only one instance can exist in any process.
Definition at line 43 of file UdpLogOutput.h.
icl_core::logging::UdpLogOutput::UdpLogOutput | ( | const icl_core::String & | name, |
const icl_core::String & | config_prefix, | ||
icl_core::logging::LogLevel | log_level | ||
) | [private] |
Definition at line 32 of file UdpLogOutput.cpp.
icl_core::logging::UdpLogOutput::~UdpLogOutput | ( | ) | [private, virtual] |
Definition at line 79 of file UdpLogOutput.cpp.
LogOutputStream * icl_core::logging::UdpLogOutput::create | ( | const icl_core::String & | name, |
const icl_core::String & | config_prefix, | ||
icl_core::logging::LogLevel | log_level = cDEFAULT_LOG_LEVEL |
||
) | [static] |
Creates a new file log output stream object.
Definition at line 26 of file UdpLogOutput.cpp.
icl_core::String icl_core::logging::UdpLogOutput::escape | ( | icl_core::String | str | ) | const [private] |
Definition at line 110 of file UdpLogOutput.cpp.
void icl_core::logging::UdpLogOutput::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 87 of file UdpLogOutput.cpp.
int icl_core::logging::UdpLogOutput::m_socket [private] |
Definition at line 63 of file UdpLogOutput.h.
Definition at line 61 of file UdpLogOutput.h.