ACE 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Private Attributes | Friends | List of all members
ACE_Log_Category_TSS Class Reference

The thread specific object for a ACE_Log_Categy object. More...

#include <Log_Category.h>

Collaboration diagram for ACE_Log_Category_TSS:
Collaboration graph
[legend]

Public Member Functions

 ACE_Log_Category_TSS (ACE_Log_Category *category, ACE_Log_Msg *logger)
 
const charname () const
 
unsigned int id () const
 
ACE_Log_Msglogger ()
 
u_long priority_mask () const
 Get the current ACE_Log_Priority mask.
 
u_long priority_mask (u_long)
 Set the ACE_Log_Priority mask, returns original mask.
 
int log_priority_enabled (ACE_Log_Priority log_priority)
 Return true if the requested priority is enabled.
 
void set (const char *file, int line, int op_status=-1, int errnum=0)
 
void conditional_set (const char *file, int line, int op_status, int errnum)
 
ssize_t log (ACE_Log_Priority priority, const ACE_TCHAR *format,...)
 
ssize_t log (ACE_Log_Priority priority, const ACE_ANTI_TCHAR *format,...)
 
ssize_t log (const ACE_TCHAR *format, ACE_Log_Priority priority, va_list argp)
 
ssize_t log (ACE_Log_Record &log_record, int suppress_stderr=0)
 
int log_hexdump (ACE_Log_Priority log_priority, const char *buffer, size_t size, const ACE_TCHAR *text=0)
 

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 

Private Attributes

ACE_Log_Categorycategory_
 
ACE_Log_Msglogger_
 
u_long priority_mask_
 

Friends

class ACE_Log_Category
 

Detailed Description

The thread specific object for a ACE_Log_Categy object.

See also
ACE_Log_Categy

Constructor & Destructor Documentation

◆ ACE_Log_Category_TSS()

ACE_Log_Category_TSS::ACE_Log_Category_TSS ( ACE_Log_Category * category,
ACE_Log_Msg * logger )

Member Function Documentation

◆ conditional_set()

void ACE_Log_Category_TSS::conditional_set ( const char * file,
int line,
int op_status,
int errnum )
inline

These values are only actually set if the requested priority is enabled.

◆ id()

unsigned int ACE_Log_Category_TSS::id ( ) const
inline

◆ log() [1/4]

ssize_t ACE_Log_Category_TSS::log ( ACE_Log_Priority priority,
const ACE_ANTI_TCHAR * format,
... )
inline

◆ log() [2/4]

ssize_t ACE_Log_Category_TSS::log ( ACE_Log_Priority priority,
const ACE_TCHAR * format,
... )
inline

◆ log() [3/4]

ssize_t ACE_Log_Category_TSS::log ( ACE_Log_Record & log_record,
int suppress_stderr = 0 )
inline

◆ log() [4/4]

ssize_t ACE_Log_Category_TSS::log ( const ACE_TCHAR * format,
ACE_Log_Priority priority,
va_list argp )
inline

An alternative logging mechanism that makes it possible to integrate variable argument lists from other logging mechanisms into the ACE mechanism.

◆ log_hexdump()

int ACE_Log_Category_TSS::log_hexdump ( ACE_Log_Priority log_priority,
const char * buffer,
size_t size,
const ACE_TCHAR * text = 0 )
inline

Method to log hex dump. This is useful for debugging. Calls log() to do the actual print, but formats first to make the chars printable.

◆ log_priority_enabled()

int ACE_Log_Category_TSS::log_priority_enabled ( ACE_Log_Priority log_priority)
inline

Return true if the requested priority is enabled.

◆ logger()

ACE_Log_Msg * ACE_Log_Category_TSS::logger ( )
inline

◆ name()

const char * ACE_Log_Category_TSS::name ( ) const
inline

◆ priority_mask() [1/2]

u_long ACE_Log_Category_TSS::priority_mask ( ) const
inline

Get the current ACE_Log_Priority mask.

◆ priority_mask() [2/2]

u_long ACE_Log_Category_TSS::priority_mask ( u_long n_mask)
inline

Set the ACE_Log_Priority mask, returns original mask.

◆ set()

void ACE_Log_Category_TSS::set ( const char * file,
int line,
int op_status = -1,
int errnum = 0 )
inline

Set the line number, file name, operational status, error number, restart flag, ostream, and the callback object. This combines all the other set methods into a single method.

Friends And Related Symbol Documentation

◆ ACE_Log_Category

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

ACE_Log_Category_TSS::ACE_ALLOC_HOOK_DECLARE

◆ category_

ACE_Log_Category* ACE_Log_Category_TSS::category_
private

◆ logger_

ACE_Log_Msg* ACE_Log_Category_TSS::logger_
private

◆ priority_mask_

u_long ACE_Log_Category_TSS::priority_mask_
private

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