version 3.3

logger.h File Reference

#include <vrs/sharedobj.h>
#include <vrs/exception.h>

Go to the source code of this file.

Namespaces

namespace  VRS

Classes

class  VRS::Logger
 Provides logging into a logfile with timestamps. More...

Defines

#define VRS_LOG(component, message)
 'component' is a string, 'message' a string stream like: "my integer output is " << intValue
#define VRS_LOG_EXCEPTION(component, stdexception)   ::VRS::Logger::get()->logException(component, stdexception)
 'component' is a string, 'stdexception' std::exception& or std::exception*
#define VRS_LOG_ERROR(errortype, expr, file, line, text)   ::VRS::Logger::get()->logError(errortype, expr, file, line, text)
 only for use in errorhandler.cpp


Define Documentation

#define VRS_LOG ( component,
message   ) 

Value:

std::ostringstream ostr;        \
        ostr << message;                \
	::VRS::Logger::get()->logInfo(component, ostr.str())
'component' is a string, 'message' a string stream like: "my integer output is " << intValue

#define VRS_LOG_ERROR ( errortype,
expr,
file,
line,
text   )     ::VRS::Logger::get()->logError(errortype, expr, file, line, text)

only for use in errorhandler.cpp

#define VRS_LOG_EXCEPTION ( component,
stdexception   )     ::VRS::Logger::get()->logException(component, stdexception)

'component' is a string, 'stdexception' std::exception& or std::exception*


Generated on Wed May 23 06:00:15 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact