40 : m_initial_level(initial_level),
61 delete it->thread_stream;
103 if (find_it->thread_id == thread_id && find_it->log_level == log_level)
105 thread_stream = find_it->thread_stream;
111 if (thread_stream == NULL)
118 find_it->thread_id = thread_id;
119 find_it->log_level = log_level;
120 thread_stream = find_it->thread_stream;
127 if (thread_stream == NULL)
131 bool re_enter_hrt =
false;
153 return *thread_stream;
161 std::cerr << (*it)->name() <<
" ";
166 #ifdef _IC_BUILDER_DEPRECATED_STYLE_ 176 const char *LogStream::NameCStr()
const 184 void LogStream::SetActive(
bool active)
200 bool LogStream::IsActive()
const 232 void LogStream::PrintConfiguration()
const 257 if (find_it->thread_stream == thread_stream)
static ThreadId m_empty_thread_id
ICL_CORE_OS_IMPL_NS::ThreadId ThreadId
void post()
Increments the semaphore.
void releaseThreadStream(icl_core::logging::ThreadStream *thread_stream)
#define ICL_CORE_VC_DEPRECATE_STYLE
Contains icl_logging::ThreadStream.
Contains icl_logging::LoggingManager.
friend class ThreadStream
Contains global functions for string manipulation, encapsulated into the icl_core::os namespace...
icl_core::logging::ThreadStream & threadStream(icl_core::logging::LogLevel log_level)
icl_core::logging::LogLevel m_initial_level
static LoggingManager & instance()
void changeLevel(icl_core::logging::LogLevel level)
const char * nameCStr() const
icl_core::logging::LogLevel initialLogLevel() const
Get the initial log level of this log stream.
void printConfiguration() const
Prints the list of connected log output streams.
#define ICL_CORE_VC_DEPRECATE_STYLE_USE(arg)
void addOutputStream(LogOutputStream *new_stream)
ThreadStreamMap m_thread_stream_map
void setActive(bool active=true)
Activates or deactivates the log stream.
LogStream(const icl_core::String &name, icl_core::logging::LogLevel initial_level=cDEFAULT_LOG_LEVEL)
std::set< LogOutputStream * > m_output_stream_list
bool isActive() const
Checks if the log stream is active.
void assertInitialized() const
Contains global LXRT functions.
void removeLogStream(const icl_core::String &log_stream_name)
This is an output stream class for log messages.
#define cDEFAULT_LOG_THREAD_STREAM_POOL_SIZE
Implements the actual logging for an individual thread.
Contains icl_logging::LogStream.
icl_core::String name() const
Return the name of the log stream.
icl_core::logging::LogLevel getLogLevel() const
Get the log level of the current thread.
void removeOutputStream(LogOutputStream *stream)
Contains icl_logging::LogOutputStream.