rwsf::Loggerrwsf::HandleBase
#include rwsf/core/Logger.h
Logger provides an interface for writing log messages to the logging framework. Log messages can be classified by log level.
void debug(const std::string & message);
Logs the specified message at the debug level.
void debug(const rwsf::LogMessage & message);
Logs the specified message at the debug level.
void dev(const std::string & message);
Logs the specified message at the development debug level.
void dev(const rwsf::LogMessage & message);
Logs the specified message at the development debug level.
void error(const std::string & message);
Logs the specified message at the non-fatal error level.
void error(const rwsf::LogMessage & message);
Logs the specified message at the non-fatal error level.
void fatal(const std::string & message);
Logs the specified message at the fatal level.
void fatal(const rwsf::LogMessage & message);
Logs the specified message at the fatal level.
std::string getName() const;
Returns the name of this logger.
void info(const std::string & message);
Logs the specified message at the basic info level.
void info(const rwsf::LogMessage & message);
Logs the specified message at the basic info level.
void init(const rwsf::Config & config);
Initializes a new logger based on the configuration information provided.
void log(Logger::LogLevel level, const std::string & message);
Logs the specified message at the given level.
void log(Logger::LogLevel level, const rwsf::LogMessage & message);
Logs the specified message at the given level.
void verbose(const std::string & message);
Logs the specified message at the verbose level.
void verbose(const rwsf::LogMessage & message);
Logs the specified message at the verbose level.
void warn(const std::string & message);
Logs the specified message at the important warning level.
void warn(const rwsf::LogMessage & message);
Logs the specified message at the important warning level.
bool wouldLog(Logger::LogLevel level);
Returns true if the logger would log the given level. This is useful to check if it's even necessary to actually try to log a message to a given level.
rwsf::LoggerImp & body();
Reimplements method in rwsf::HandleBase
Base class documentation:
Gets a reference for the body instance, if any; otherwise, throws an rwsf::Exception exception.
© Copyright Rogue Wave Software, Inc. All Rights Reserved. All Rights Reserved. Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. HydraExpress is a trademark of Rogue Wave Software, Inc. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.