The Ice message logger.
More...
#include <Ice/Ice.h>
|
virtual ::std::shared_ptr<::Ice::Logger > | cloneWithPrefix (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 () |
|
The Ice message logger.
Applications can provide their own logger by implementing this interface and installing it in a communicator.
◆ ~Logger()
virtual Ice::Logger::~Logger |
( |
| ) |
|
|
virtual |
◆ 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
-
prefix | The 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
-
message | The 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
-
message | The message to log. |
◆ trace()
virtual void Ice::Logger::trace |
( |
const ::std::string & |
category, |
|
|
const ::std::string & |
message |
|
) |
| |
|
pure virtual |
Log a trace message.
- Parameters
-
category | The trace category. |
message | The trace message to log. |
◆ warning()
virtual void Ice::Logger::warning |
( |
const ::std::string & |
message | ) |
|
|
pure virtual |
Log a warning message.
- Parameters
-
message | The warning message to log. |
- See also
- error
The documentation for this class was generated from the following file:
- generated/cpp11/x64/Release/Ice/Logger.h