Public Types |
enum | { MAXLOGMSGLEN = ACE_MAXLOGMSGLEN,
ALIGN_WORDB = 8,
VERBOSE_LEN = 128,
MAXVERBOSELOGMSGLEN = VERBOSE_LEN + MAXLOGMSGLEN
} |
Public Methods |
| ACE_Log_Record (void) |
| ACE_Log_Record (ACE_Log_Priority lp, long time_stamp, long pid) |
| ACE_Log_Record (ACE_Log_Priority lp, const ACE_Time_Value &time_stamp, long pid) |
| ~ACE_Log_Record (void) |
| Default dtor.
|
int | print (const ACE_TCHAR host_name[], u_long verbose_flag, FILE *fp = stderr) |
| Write the contents of the logging record to the appropriate <FILE>.
|
int | print (const ACE_TCHAR host_name[], u_long verbose_flag, ostream &stream) |
| Write the contents of the logging record to the appropriate <ostream>.
|
int | format_msg (const ACE_TCHAR host_name[], u_long verbose_flag, ACE_TCHAR *verbose_msg) |
void | encode (void) |
| Encode the <Log_Record> for transmission on the network.
|
void | decode (void) |
| Decode the <Log_Record> received from the network.
|
long | type (void) const |
| Get the type of the <Log_Record>.
|
void | type (long) |
| Set the type of the <Log_Record>.
|
u_long | priority (void) const |
void | priority (u_long num) |
| Set the priority of the <Log_Record> <type_> (which must be a power of 2, as defined by the enums in ).
|
long | length (void) const |
| Get the length of the <Log_Record>.
|
void | length (long) |
| Set the length of the <Log_Record>.
|
ACE_Time_Value | time_stamp (void) const |
| Get the time stamp of the <Log_Record>.
|
void | time_stamp (const ACE_Time_Value &) |
| Set the time stamp of the <Log_Record>.
|
long | pid (void) const |
| Get the process id of the <Log_Record>.
|
void | pid (long) |
| Set the process id of the <Log_Record>.
|
const ACE_TCHAR* | msg_data (void) const |
| Get the message data of the <Log_Record>.
|
void | msg_data (const ACE_TCHAR *data) |
| Set the message data of the <Log_Record>.
|
size_t | msg_data_len (void) const |
| Get the size of the message data of the <Log_Record>, including a byte for the NUL.
|
void | dump (void) const |
| Dump the state of an object.
|
Public Attributes |
| ACE_ALLOC_HOOK_DECLARE |
| Declare the dynamic allocation hooks.
|
Static Public Methods |
const ACE_TCHAR* | priority_name (ACE_Log_Priority p) |
void | priority_name (ACE_Log_Priority p, const ACE_TCHAR *name) |
Private Methods |
void | round_up (void) |
| Round up to the alignment restrictions.
|
Private Attributes |
ACE_INT32 | length_ |
ACE_UINT32 | type_ |
| Type of logging record.
|
ACE_UINT32 | secs_ |
| Time that the logging record was generated.
|
ACE_UINT32 | usecs_ |
ACE_UINT32 | pid_ |
| Id of process that generated the logging record.
|
ACE_TCHAR | msg_data_ [MAXLOGMSGLEN + 1] |
| Logging record data.
|
Static Private Attributes |
const ACE_TCHAR* | priority_names_ [] |
| Symbolic names for the enums.
|