|
Public Member Functions |
void | SetLevel (UInt32 inLevel) |
UInt32 | GetLevel () const |
UInt32 | GetMode () const |
void | SetOptions (UInt32 inOptions) |
UInt32 | GetOptions () const |
CP_E_LogFile_Status | GetStatus () const |
const char * | GetFilename () const |
void | SetSyslogPriorityThreshold (int inSysLogPriority, UInt32 inLogLevelThreshold) |
| Set the threshold to use a specific syslog priority.
|
void | SetSyslogFacility (int inSysLogFacility) |
|
| CP_BufferedLogFile (char newLineChar) |
| Constructor.
|
virtual | ~CP_BufferedLogFile () |
| Destructor.
|
|
SInt32 | Flush () |
|
SInt32 | Start (const char *inFile, UInt32 inType=CP_E_LogOptions_ExplicitPath|CP_E_LogOptions_LogToDebug, UInt32 inOptions=CP_E_LogFile_ShowAll, UInt32 inLevel=0) |
SInt32 | Start (const CP_FileSystemSpec &inFileSpec, UInt32 inType=CP_E_LogOptions_ExplicitPath|CP_E_LogOptions_LogToDebug, UInt32 inOptions=CP_E_LogFile_ShowAll, UInt32 inLevel=0) |
SInt32 | Start (UInt32 inType=CP_E_LogOptions_LogToDebug, UInt32 inOptions=CP_E_LogFile_ShowAll, UInt32 inLevel=0) |
SInt32 | Pause () |
SInt32 | Continue () |
SInt32 | Stop () |
|
SInt32 | LogMessage (const char *inMessage, UInt32 inLevel=0) |
SInt32 | LogMessage (UInt32 inLevel, const char *inFormatStr,...) |
SInt32 | VLogMessage (UInt32 inLevel, const char *inFormatStr, va_list args) |
|
SInt32 | Start (const char *inFile, UInt32 inType=CP_E_LogOptions_ExplicitPath|CP_E_LogOptions_LogToDebug, UInt32 inOptions=CP_E_LogFile_ShowAll, UInt32 inLevel=0) |
SInt32 | Start (const CP_FileSystemSpec &inFileSpec, UInt32 inType=CP_E_LogOptions_ExplicitPath|CP_E_LogOptions_LogToDebug, UInt32 inOptions=CP_E_LogFile_ShowAll, UInt32 inLevel=0) |
SInt32 | Start (UInt32 inType=CP_E_LogOptions_LogToDebug, UInt32 inOptions=CP_E_LogFile_ShowAll, UInt32 inLevel=0) |
SInt32 | Pause () |
SInt32 | Continue () |
SInt32 | Stop () |
|
SInt32 | LogMessage (const char *inMessage, UInt32 inLevel=0) |
SInt32 | LogMessage (UInt32 inLevel, const char *inFormatStr,...) |
SInt32 | VLogMessage (UInt32 inLevel, const char *inFormatStr, va_list args) |
Protected Member Functions |
|
virtual SInt32 | LogMessageSelf (const char *inMessage, UInt32 inLevel=0) |
SInt32 | FlushSelf (bool inMutexLocked) |
Protected Attributes |
CP_String | fStreamBuffer |
UInt32 | fStreamLevel |
char | fNewLineChar |
CP_Mutex | fStreamBufferMutex |
| mutex to synchronize access to fStreamBuffer
|
FILE * | fOutfile |
UInt32 | fOptions |
UInt32 | fLevel |
CP_E_LogFile_Status | fStatus |
UInt32 | fMode |
UInt32 | fCount |
char | fFile [255] |
bool | fEmptyFileFlag |
bool | fLogToFileFlag |
char | fMessage [1024] |
char | fBuffer [1024] |
char | fBuffer1 [1024] |
UInt32 | fSyslogPriorityThresholds [32] |
int | fSyslogFacility |
CP_Mutex | fBufferMutex |
| mutex to synchronize access to fBuffer.
|
CP_Mutex | fLogMutex |
| mutex to serialize LogMessage calls
|