Public Member Functions | |
| int | close () |
| int | endPrintError () |
| int | getCycleLog () |
| File * | getFile () |
| int | getGzip () |
| int | getLogSize () |
| u_long | getMaxSize () |
| int | getType () |
| int | load (string const &filename) |
| int | load (const char *filename) |
| LogManager () | |
| int | preparePrintError () |
| int | requestAccess () |
| void | setCycleLog (int) |
| void | setGzip (bool) |
| u_long | setMaxSize (u_long) |
| void | setType (int) |
| int | storeFile () |
| int | terminateAccess () |
| int | write (string const &str, int len=0) |
| int | write (const char *str, int len=0) |
| int | writeln (string const &str) |
| int | writeln (const char *) |
| ~LogManager () | |
Static Public Attributes | |
| const int | TYPE_CONSOLE = 1 |
| const int | TYPE_FILE = 2 |
Private Attributes | |
| int | cycleLog |
| File | file |
| int | gzipLog |
| int | loaded |
| u_long | maxSize |
| Mutex | mutex |
| int | type |
|
|
Initialize the object. |
|
|
Destroy the object. |
|
|
Close the file. |
|
|
Exit from printing errors. |
|
|
Get if the log store log data on a new file when the max size is reached. |
|
|
Get a pointer to the file object. |
|
|
Returns nonzero if the log is using gzip for cycled logs. |
|
|
Return the actual size for the log file. |
|
|
Return the max size for the log. |
|
|
Get the type of log. |
|
|
|
|
|
Load and use the file to save logs. Return zero on sucess. |
|
|
Switch in the error output mode. |
|
|
Request access for the thread. |
|
|
Set the log to save results on a new file when the max size is reached. |
|
|
Set if the log will cycle log files using gzip. |
|
|
Set the max size for the log. Returns the old limit. Using a size of zero means that this limit is not used. |
|
|
Set the type for the log. |
|
|
Store the log manager in another file and reload the file. |
|
|
Terminate the access for the thread. |
|
||||||||||||
|
|
|
||||||||||||
|
Write the string to the log. Returns 0 on success. |
|
|
|
|
|
Write the string to the log plus termination character[s]. Returns 0 on success. |
|
|
|
|
|
|
|
|
|
|
|
loaded is used to store if the file object is initialized correctly. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.9.1