Ice 3.7 C++11 API Reference
Public Member Functions | List of all members
Ice::Logger Class Referenceabstract

The Ice message logger. More...

#include <Ice/Ice.h>

Public Member Functions

virtual ::std::shared_ptr<::Ice::LoggercloneWithPrefix (const ::std::string &prefix)=0
 Returns a clone of the logger with a new prefix. More...
 
virtual void error (const ::std::string &message)=0
 Log an error message. More...
 
virtual ::std::string getPrefix ()=0
 Returns this logger's prefix. More...
 
virtual void print (const ::std::string &message)=0
 Print a message. More...
 
virtual void trace (const ::std::string &category, const ::std::string &message)=0
 Log a trace message. More...
 
virtual void warning (const ::std::string &message)=0
 Log a warning message. More...
 
virtual ~Logger ()
 

Detailed Description

The Ice message logger.

Applications can provide their own logger by implementing this interface and installing it in a communicator.

Constructor & Destructor Documentation

◆ ~Logger()

virtual Ice::Logger::~Logger ( )
virtual

Member Function Documentation

◆ cloneWithPrefix()

virtual ::std::shared_ptr<::Ice::Logger> Ice::Logger::cloneWithPrefix ( const ::std::string &  prefix)
pure virtual

Returns a clone of the logger with a new prefix.

Parameters
prefixThe new prefix for the logger.
Returns
A logger instance.

◆ error()

virtual void Ice::Logger::error ( const ::std::string &  message)
pure virtual

Log an error message.

Parameters
messageThe error message to log.
See also
warning

◆ getPrefix()

virtual ::std::string Ice::Logger::getPrefix ( )
pure virtual

Returns this logger's prefix.

Returns
The prefix.

◆ print()

virtual void Ice::Logger::print ( const ::std::string &  message)
pure virtual

Print a message.

The message is printed literally, without any decorations such as executable name or time stamp.

Parameters
messageThe message to log.

◆ trace()

virtual void Ice::Logger::trace ( const ::std::string &  category,
const ::std::string &  message 
)
pure virtual

Log a trace message.

Parameters
categoryThe trace category.
messageThe trace message to log.

◆ warning()

virtual void Ice::Logger::warning ( const ::std::string &  message)
pure virtual

Log a warning message.

Parameters
messageThe warning message to log.
See also
error

The documentation for this class was generated from the following file: