#include <loggingLocalFile.h>
Inheritance diagram for LocalFileLogger:
Public Member Functions | |
LocalFileLogger () | |
Constructor. | |
virtual | ~LocalFileLogger (void) |
Destructor. | |
virtual int | open (const ACE_TCHAR *filename=0) |
Open a new connection. | |
virtual int | reset (void) |
No-op for UDP. | |
virtual int | close (void) |
No-op for UDP. | |
virtual int | log (ACE_Log_Record &log_record) |
virtual int | log (int priority, const ACE_TCHAR *msg) |
Send log. | |
virtual const ACE_TCHAR * | getIdentification () |
Returns identification string, e.g. "Local file". | |
virtual const ACE_TCHAR * | getDestination () |
Returns the destination of the logger, e.g. "/tmp/local_cache.dat". | |
Private Attributes | |
FILE * | m_file |
File handle. | |
ACE_TCHAR * | m_fileName |
Filename. | |
int | m_newLineLen |
New line length. |
|
Constructor.
|
|
Destructor.
|
|
No-op for UDP.
Implements CacheLogger.
|
|
Returns the destination of the logger, e.g. "/tmp/local_cache.dat".
Implements CacheLogger.
|
|
Returns identification string, e.g. "Local file".
Implements CacheLogger.
|
|
Send log.
Implements CacheLogger.
|
|
ACE_Log_Record with msg_data and priority set. Logs the record's msg_data() and maps ACE priority to syslog priority. ACE_Log_Record.msg_data() copies message (performacne concern). Implements CacheLogger.
|
|
Open a new connection.
Implements CacheLogger.
|
|
No-op for UDP.
Implements CacheLogger.
|
|
File handle.
|
|
Filename.
|
|
New line length.
|