My Project
SallyAPI::System::CLogger Class Reference

Logger. More...

#include <Logger.h>

List of all members.

Public Member Functions

 CLogger (const std::string &fileName, bool createNew=true, LOG_LEVEL logLevel=LOG_LEVEL_INFO)
 Constructor.
virtual ~CLogger ()
 Destructor.
void SetLogLevel (LOG_LEVEL logLevel)
 Sets a log level.
LOG_LEVEL GetLogLevel ()
 Gets the log level.
std::string GetFilename ()
 Gets the filename.
void Debug (const std::string &s)
 Debugs.
void Error (const std::string &s)
 Errors.
void Warning (const std::string &s)
 Warnings.
void Info (const std::string &s)
 Infoes.
void Debug (int s)
 Debugs.
void Error (int s)
 Errors.
void Warning (int s)
 Warnings.
void Info (int s)
 Infoes.
void Debug (HRESULT s)
 Debugs.
void Error (HRESULT s)
 Errors.
void Warning (HRESULT s)
 Warnings.
void Info (HRESULT s)
 Infoes.

Protected Member Functions

virtual void WriteLog (const std::string &s)
 Writes a log.

Detailed Description

Logger.

Author:
Christian Knobloch
Date:
19.04.2010

Constructor & Destructor Documentation

CLogger::CLogger ( const std::string &  fileName,
bool  createNew = true,
LOG_LEVEL  logLevel = LOG_LEVEL_INFO 
)

Constructor.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
fileNameFilename of the file.
createNewtrue to create new.
logLevelThe log level.
CLogger::~CLogger ( ) [virtual]

Destructor.

Author:
Christian Knobloch
Date:
19.04.2010

Member Function Documentation

void CLogger::Debug ( const std::string &  s)

Debugs.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
sThe.
void CLogger::Debug ( int  s)

Debugs.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
sThe.
void CLogger::Debug ( HRESULT  s)

Debugs.

Author:
Christian Knobloch
Date:
01.06.2010
Parameters:
sThe.
void CLogger::Error ( const std::string &  s)

Errors.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
sThe.
void CLogger::Error ( int  s)

Errors.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
sThe.
void CLogger::Error ( HRESULT  s)

Errors.

Author:
Christian Knobloch
Date:
01.06.2010
Parameters:
sThe.
std::string CLogger::GetFilename ( )

Gets the filename.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The filename.

Gets the log level.

Author:
Christian Knobloch
Date:
19.04.2010
Returns:
The log level.
void CLogger::Info ( const std::string &  s)

Infoes.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
sThe.
void CLogger::Info ( int  s)

Infoes.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
sThe.
void CLogger::Info ( HRESULT  s)

Infoes.

Author:
Christian Knobloch
Date:
01.06.2010
Parameters:
sThe.
void CLogger::SetLogLevel ( LOG_LEVEL  logLevel)

Sets a log level.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
logLevelThe log level.
void CLogger::Warning ( const std::string &  s)

Warnings.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
sThe.
void CLogger::Warning ( int  s)

Warnings.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
sThe.
void CLogger::Warning ( HRESULT  s)

Warnings.

Author:
Christian Knobloch
Date:
01.06.2010
Parameters:
sThe.
void CLogger::WriteLog ( const std::string &  s) [protected, virtual]

Writes a log.

Author:
Christian Knobloch
Date:
19.04.2010
Parameters:
sThe.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines