Implements a thread-safe logging framework. More...
#include <LogStream.h>
Implements a thread-safe logging framework.
Definition at line 54 of file LogStream.h.
typedef std::list<ThreadStreamInfo> icl_core::logging::LogStream::ThreadStreamMap [private] |
Definition at line 179 of file LogStream.h.
icl_core::logging::LogStream::LogStream | ( | const icl_core::String & | name, |
icl_core::logging::LogLevel | initial_level = cDEFAULT_LOG_LEVEL |
||
) |
Creates a new logstream which is not yet connected to any log output stream.
Definition at line 26 of file LogStream.cpp.
Definition at line 41 of file LogStream.cpp.
void icl_core::logging::LogStream::addOutputStream | ( | LogOutputStream * | new_stream | ) |
Adds a new log output stream to the log stream. All log messages are additionally written to this new log output stream.
Definition at line 59 of file LogStream.cpp.
Get the log level of the current thread.
Definition at line 53 of file LogStream.cpp.
icl_core::logging::LogLevel icl_core::logging::LogStream::initialLogLevel | ( | ) | const [inline] |
Get the initial log level of this log stream.
Definition at line 75 of file LogStream.h.
bool icl_core::logging::LogStream::isActive | ( | ) | const [inline] |
Checks if the log stream is active.
Definition at line 78 of file LogStream.h.
icl_core::String icl_core::logging::LogStream::name | ( | ) | const [inline] |
Return the name of the log stream.
Definition at line 68 of file LogStream.h.
const char* icl_core::logging::LogStream::nameCStr | ( | ) | const [inline] |
Definition at line 69 of file LogStream.h.
void icl_core::logging::LogStream::printConfiguration | ( | ) | const |
Prints the list of connected log output streams.
Definition at line 143 of file LogStream.cpp.
void icl_core::logging::LogStream::releaseThreadStream | ( | icl_core::logging::ThreadStream * | thread_stream | ) | [private] |
Definition at line 239 of file LogStream.cpp.
void icl_core::logging::LogStream::removeOutputStream | ( | LogOutputStream * | stream | ) |
Removes a log output stream from the log stream. Log messages are no longer written to this log output stream.
Definition at line 68 of file LogStream.cpp.
void icl_core::logging::LogStream::setActive | ( | bool | active = true | ) | [inline] |
Activates or deactivates the log stream.
Definition at line 72 of file LogStream.h.
icl_core::logging::ThreadStream & icl_core::logging::LogStream::threadStream | ( | icl_core::logging::LogLevel | log_level | ) |
Returns the underlying thread stream for the current thread.
This function should usually not be used directly. It is mainly intended to be used indirectly via the LOGGING_* log macros.
Definition at line 77 of file LogStream.cpp.
friend class LoggingManager [friend] |
Definition at line 56 of file LogStream.h.
friend class ThreadStream [friend] |
Definition at line 57 of file LogStream.h.
bool icl_core::logging::LogStream::m_active [private] |
Definition at line 183 of file LogStream.h.
ThreadId icl_core::logging::LogStream::m_empty_thread_id [static, private] |
Definition at line 189 of file LogStream.h.
Definition at line 163 of file LogStream.h.
Definition at line 187 of file LogStream.h.
Definition at line 182 of file LogStream.h.
Definition at line 184 of file LogStream.h.
Definition at line 180 of file LogStream.h.