16#ifndef __Ice_Logger_h__
17#define __Ice_Logger_h__
31#ifndef ICE_IGNORE_VERSION
32# if ICE_INT_VERSION / 100 != 307
33# error Ice version mismatch!
35# if ICE_INT_VERSION % 100 >= 50
36# error Beta header file detected
38# if ICE_INT_VERSION % 100 < 11
39# error Ice patch level mismatch!
44# if defined(ICE_STATIC_LIBS)
46# elif defined(ICE_API_EXPORTS)
47# define ICE_API ICE_DECLSPEC_EXPORT
49# define ICE_API ICE_DECLSPEC_IMPORT
53#ifdef ICE_CPP11_MAPPING
70class ICE_CLASS(ICE_API) Logger
81 virtual void print(const ::std::string& message) = 0;
88 virtual void trace(const ::std::string& category, const ::std::string& message) = 0;
95 virtual void warning(const ::std::string& message) = 0;
102 virtual void error(const ::std::string& message) = 0;
108 virtual ::std::string getPrefix() = 0;
115 virtual ::std::shared_ptr<::Ice::Logger> cloneWithPrefix(const ::std::string& prefix) = 0;
131using LoggerPtr = ::std::shared_ptr<Logger>;
165#ifdef ICE_CPP11_COMPILER
176 virtual void print(const ::std::string& message) = 0;
183 virtual void trace(const ::std::string& category, const ::std::string& message) = 0;
190 virtual void warning(const ::std::string& message) = 0;
197 virtual void error(const ::std::string& message) = 0;
214inline bool operator==(
const Logger& lhs,
const Logger& rhs)
219inline bool operator<(
const Logger& lhs,
const Logger& rhs)
221 return static_cast<const LocalObject&
>(lhs) <
static_cast<const LocalObject&
>(rhs);
#define ICE_API
Definition Config.h:197
#define ICE_MEMBER(API)
Definition Config.h:177
Shared & operator=(const Shared &)
Definition Shared.h:94
Base class for local Slice classes and interfaces.
Definition LocalObject.h:25
The Ice message logger.
Definition Logger.h:158
virtual::std::string getPrefix()=0
Returns this logger's prefix.
virtual void trace(const ::std::string &category, const ::std::string &message)=0
Log a trace message.
LoggerPtr PointerType
Definition Logger.h:161
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 void print(const ::std::string &message)=0
Print a message.
virtual void warning(const ::std::string &message)=0
Log a warning message.
Definition BuiltinSequences.h:113
::IceInternal::Handle< Logger > LoggerPtr
Definition Logger.h:145
IceUtil::Shared * upCast(::Ice::AsyncResult *)