Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

IopcLogger Class Reference

#include <iopcLogger.h>

List of all members.

Public Member Functions

 IopcLogger ()
void logInfo (const char *format,...)
void logWarning (const char *format,...)
void logError (const char *format,...)

Protected Attributes

CStdString infoLogFile
CStdString warningLogFile
CStdString errorLogFile


Detailed Description

Class that is used to send info, warning and error messages to appropriate log files.

Note:
In IOPC LIB currently exists only one instance of IopcLogger - iopcLogger.


Constructor & Destructor Documentation

IopcLogger::IopcLogger  ) 
 

Simple constructor.


Member Function Documentation

void IopcLogger::logInfo const char *  format,
... 
 

Formats message according to given format specification (as printf() does) and sends it to info log.

Parameters:
format printf-style format specification.
See also:
infoLogFile

void IopcLogger::logWarning const char *  format,
... 
 

Formats message according to given format specification (as printf() does) and sends it to warning log.

Parameters:
format printf-style format specification.
See also:
warningLogFile

void IopcLogger::logError const char *  format,
... 
 

Formats message according to given format specification (as printf() does) and sends it to error log.

Parameters:
format printf-style format specification.
See also:
errorLogFile


Member Data Documentation

CStdString IopcLogger::infoLogFile [protected]
 

Name of file containing info log. Initialized to INFO_LOG_FILE in constructor.

CStdString IopcLogger::warningLogFile [protected]
 

Name of file containing warning log. Initialized to WARNING_LOG_FILE in constructor.

CStdString IopcLogger::errorLogFile [protected]
 

Name of file containing error log. Initialized to ERROR_LOG_FILE in constructor.


The documentation for this class was generated from the following files:
Generated on Wed Aug 11 22:35:37 2004 for IOPC by Doxygen 1.3.6