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
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;
115 virtual ::std::shared_ptr<::Ice::Logger>
cloneWithPrefix(const ::std::string& prefix) = 0;
131using LoggerPtr = ::std::shared_ptr<Logger>;
145typedef ::IceInternal::Handle< Logger> LoggerPtr;
161 typedef LoggerPtr PointerType;
165#ifdef ICE_CPP11_COMPILER
167 Logger(
const Logger&) =
default;
168 Logger& operator=(
const Logger&) =
default;
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;
203 virtual ::std::string getPrefix() = 0;
210 virtual LoggerPtr cloneWithPrefix(const ::std::string& prefix) = 0;
216 return static_cast<const LocalObject&
>(lhs) ==
static_cast<const LocalObject&
>(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
The Ice message logger.
Definition Logger.h:71
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.
virtual void error(const ::std::string &message)=0
Log an error message.
virtual void print(const ::std::string &message)=0
Print a message.
virtual ::std::shared_ptr<::Ice::Logger > cloneWithPrefix(const ::std::string &prefix)=0
Returns a clone of the logger with a new prefix.
virtual void warning(const ::std::string &message)=0
Log a warning message.
Definition BuiltinSequences.h:56
IceUtil::Shared * upCast(::Ice::LocalObject *)
bool operator<(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:136
bool operator==(const C &lhs, const C &rhs)
Relational operator for generated structs and classes.
Definition Comparable.h:184