diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-03-14 23:26:06 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-03-14 23:26:06 +0000 |
commit | e2ad0e0fd09e165f51c8b5b485882a39c0e6b4f0 (patch) | |
tree | 49e203f85684e4149cc27267f34a5c8ce8fdf693 /ace/Log_Msg.cpp | |
parent | f10929ca10a4f87109233ca23cb0f867f40b393e (diff) | |
download | ATCD-e2ad0e0fd09e165f51c8b5b485882a39c0e6b4f0.tar.gz |
.
Diffstat (limited to 'ace/Log_Msg.cpp')
-rw-r--r-- | ace/Log_Msg.cpp | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/ace/Log_Msg.cpp b/ace/Log_Msg.cpp index 744c80b146e..7ec82e21ced 100644 --- a/ace/Log_Msg.cpp +++ b/ace/Log_Msg.cpp @@ -248,29 +248,28 @@ ACE_Log_Msg::instance (void) } #undef ACE_NEW_RETURN_I +// Sets the flag in the default priority mask used to initialize +// ACE_Log_Msg instances, as well as the current instance. + void -ACE_Log_Msg::disable_debug_messages() - // Clears the LM_DEBUG flag from the default priority mask used to - // initialize ACE_Log_Msg instances, as well as the current instance. +ACE_Log_Msg::enable_debug_messages (ACE_Log_Priority priority) { - default_priority_mask_ &= ~LM_DEBUG; - ACE_Log_Msg *currentInstance = ACE_Log_Msg::instance(); - currentInstance->priority_mask(currentInstance->priority_mask() - & ~LM_DEBUG); + ACE_SET_BITS (ACE_Log_Msg::default_priority_mask_, priority); + ACE_Log_Msg *i = ACE_Log_Msg::instance (); + i->priority_mask (i->priority_mask () | priority); } +// Clears the flag in the default priority mask used to initialize +// ACE_Log_Msg instances, as well as the current instance. + void -ACE_Log_Msg::enable_debug_messages() - // Sets the LM_DEBUG flag in the default priority mask used to - // initialize ACE_Log_Msg instances, as well as the current instance. +ACE_Log_Msg::disable_debug_messages (ACE_Log_Priority priority) { - default_priority_mask_ |= LM_DEBUG; - ACE_Log_Msg *currentInstance = ACE_Log_Msg::instance(); - currentInstance->priority_mask(currentInstance->priority_mask() - | LM_DEBUG); + ACE_CLR_BITS (ACE_Log_Msg::default_priority_mask_, priority); + ACE_Log_Msg *i = ACE_Log_Msg::instance (); + i->priority_mask (i->priority_mask () & ~priority); } - // Name of the local host. const ASYS_TCHAR *ACE_Log_Msg::local_host_ = 0; |