Inheritance diagram for CP_LogFile:

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) |
Constructor / Destructor | |
| CP_LogFile () | |
| Constructor. | |
| virtual | ~CP_LogFile () |
| Destructor. | |
Protected Member Functions | |
Logging | |
| virtual SInt32 | LogMessageSelf (const char *inMessage, UInt32 inLevel) |
Protected Attributes | |
| 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 | |
Private Member Functions | |
Constructor / Destructor | |
| CP_LogFile (const CP_LogFile &) | |
| Constructor. | |
operators | |
| CP_LogFile & | operator= (const CP_LogFile &) |
Logging | |
| void | LogMessageToDebugger (char *inMsg) |
Logging | |
| void | LogMessageToDebugger (char *inMsg) |
Logging | |
| void | LogMessageToDebugger (char *inMsg) |
|
|
Constructor.
|
|
|
Destructor.
|
|
|
|
|
||||||||||||||||||||
|
Start logging messages to this class.
|
|
||||||||||||||||||||
|
Start logging messages to this class.
|
|
||||||||||||||||
|
Start logging messages to this class. This version does not specify a file name.
|
|
|
Temporarily pause the logging of messages, and sets the status to CP_E_LogStatus_Paused.
|
|
|
Continue logging of messages. Call this if you have paused logging, and sets the status to CP_E_LogStatus_Ready.
|
|
|
Stop logging messages to this class.
|
|
||||||||||||
|
Log a message to the log.
|
|
||||||||||||||||
|
Log a formatted message.
|
|
||||||||||||||||
|
Log a formatted message.
|
|
|
Set the level of the error, which controls the level of indenting in the file.
|
|
|
Returns the level of the error.
|
|
|
Returns the logging mode in use, which controls where / how the log file is created.
|
|
|
Sets the options that control varius aspects of how the logging takes place. The following are valid options to pass in:
|
|
|
Returns the logging options in effect.
|
|
|
Returns the current status of the log file, and can be one of the following values:
|
|
|
Returns the file name of the log.
|
|
||||||||||||
|
Defines the threshold of when to use the specified syslog level:
|
|
|
Set the sys log facility.
|
|
||||||||||||
|
Log a message to the log.
Reimplemented in CP_BufferedLogFile. |
|
|
|
|
|
Log a message to the MacOS debugger
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.0