Download Source Code

CErrLog Class Reference

This class provides error logging functionality. More...

#include <ErrLog.h>

Inheritance diagram for CErrLog:

Inheritance graph
[legend]
Collaboration diagram for CErrLog:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CErrLog ()
 Constructor.
virtual ~CErrLog ()
 Destructor.
virtual void Destroy ()
 Releases all resources.
virtual BOOL InitObject (void *node)
 Initializes an error object.
virtual void DeleteObject (void *node)
 Release any resources assigned to element.
virtual DWORD GetObjSize ()
 Return the size of an individual error element.
HRESULT _cdecl Add (LPCTSTR pFile, DWORD dwLine, LPCTSTR pFunction, DWORD dwSeverity, DWORD dwErrCode, LPCTSTR pStr,...)
 Adds error information to the list.

Detailed Description

This class provides error logging functionality.

This class provides error logging functionality. Use the error macros _vLog() to log each error event.


Member Function Documentation

HRESULT _cdecl CErrLog::Add LPCTSTR  pFile,
DWORD  dwLine,
LPCTSTR  pFunction,
DWORD  dwSeverity,
DWORD  dwErrCode,
LPCTSTR  pStr,
  ...
 

Adds error information to the list.

Parameters:
[in] pFile - The filename that generated the error
[in] dwLine - Line number of the error
[in] pFunction - Funtion name that generated error
[in] dwSeverity - Severity level of the error
[in] dwErrCode - Windows error code if any
[in] pStr - String describing what caused the error.
Returns:
dwErrCode is returned
See also:

void CErrLog::DeleteObject void *  node  )  [virtual]
 

Release any resources assigned to element.

Parameters:
[in] node - LPERRORITEMINFO to be initialized.

Reimplemented from CLList.

BOOL CErrLog::InitObject void *  node  )  [virtual]
 

Initializes an error object.

Parameters:
[in] node - LPERRORITEMINFO to be initialized.
Returns:
Non-zero if success
See also:

Reimplemented from CLList.


The documentation for this class was generated from the following files:
  • inc/ErrLog.h
  • ErrLog.cpp
Copyright Robert Umbehant
This documentation is covered by the LGPL