Ice 3.7 C++98 API Reference
Loading...
Searching...
No Matches
Ice::Logger Class Referenceabstract

The Ice message logger. More...

#include <Ice/Ice.h>

Inheritance diagram for Ice::Logger:
Collaboration diagram for Ice::Logger:

Public Types

typedef LoggerPtr PointerType

Public Member Functions

virtual LoggerPtr cloneWithPrefix (const ::std::string &prefix)=0
 Returns a clone of the logger with a new prefix.
virtual void error (const ::std::string &message)=0
 Log an error message.
virtual::std::string getPrefix ()=0
 Returns this logger's prefix.
virtual void print (const ::std::string &message)=0
 Print a message.
virtual void trace (const ::std::string &category, const ::std::string &message)=0
 Log a trace message.
virtual void warning (const ::std::string &message)=0
 Log a warning message.
virtual ~Logger ()
Public Member Functions inherited from Ice::LocalObject
virtual bool operator< (const LocalObject &) const
virtual bool operator== (const LocalObject &) const
Public Member Functions inherited from IceUtil::Shared
void __clearFlag (unsigned char flag)
virtual void __decRef ()
virtual int __getRef () const
bool __hasFlag (unsigned char flag)
virtual void __incRef ()
void __setFlag (unsigned char flag)
virtual void __setNoDelete (bool)
Sharedoperator= (const Shared &)
 Shared ()
 Shared (const Shared &)
virtual ~Shared ()

Additional Inherited Members

Static Public Attributes inherited from IceUtil::Shared
static const unsigned char NoDelete
Protected Attributes inherited from IceUtil::Shared
unsigned char _flags
IceUtilInternal::Atomic _ref

Detailed Description

The Ice message logger.

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

Member Typedef Documentation

◆ PointerType

Constructor & Destructor Documentation

◆ ~Logger()

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

Member Function Documentation

◆ cloneWithPrefix()

virtual LoggerPtr 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: