PLogger Struct Reference
[PLogger API functions]


Detailed Description

Portable logging framework.

Data Fields

ESR_ReturnCode(* printf )(struct PLogger_t *self, const LCHAR *format,...)
ESR_ReturnCode(* flush )(struct PLogger_t *self)
void(* destroy )(struct PLogger_t *self)

Field Documentation

ESR_ReturnCode(* PLogger::printf)(struct PLogger_t *self, const LCHAR *format,...)

Prints and formats a message to the log.

Parameters:
self the Logger.
format the format string specifying the next arguments (a la printf).
Returns:
ESR_SUCCESS if success, otherwise a status code indicating the nature of the error.

ESR_ReturnCode(* PLogger::flush)(struct PLogger_t *self)

Flushes internal buffer. This function can be left unimplemented if no buffering is performed by the logger.

Parameters:
self the Logger
Returns:
ESR_SUCCESS if success, otherwise a status code indicating the nature of the error.

void(* PLogger::destroy)(struct PLogger_t *self)

Destroys the logger. This function is responsible to deallocate any resources used by the logger. In particular, if buffering is internally used, it needs to flush the buffer.


Generated on Thu May 1 15:37:28 2008 for SREC by  doxygen 1.5.3