|
virtual VOID | Open (const CHAR *name, BOOL append)=0 |
|
virtual BOOL | IsOpen () const =0 |
|
virtual VOID | Close ()=0 |
|
virtual VOID | Write (const CHAR *message, size_t length)=0 |
|
VOID | Write (const std::string &message) |
|
virtual VOID | WriteAtPosition (const CHAR *message, size_t length, size_t offset)=0 |
|
This module contains routines and classes for the handling error messages
A class for Pin log file
◆ Open()
virtual VOID LOGFILE::Open |
( |
const CHAR * |
name, |
|
|
BOOL |
append |
|
) |
| |
|
pure virtual |
Create or open the specified file. If the file does not exist, create the new file.
- Parameters
-
[in] | name | Name of the file. |
[in] | append | If TRUE, new log messages are appended to the file if it already exists. If FALSE, the new file file overwrites any existing file. |
- Note
- MESSAGE_TYPE::MessageLock is locked when calling this API, therefore MESSAGE_TYPE::MessageInternal() should not be called from this function.
◆ Write()
virtual VOID LOGFILE::Write |
( |
const CHAR * |
message, |
|
|
size_t |
length |
|
) |
| |
|
pure virtual |
Write the specified message to the file.
The documentation for this class was generated from the following file: