Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ attachRemoteLogger()

void Ice::LoggerAdminPrx::attachRemoteLogger ( const std::optional< RemoteLoggerPrx > & prx,
const LogMessageTypeSeq & messageTypes,
const StringSeq & traceCategories,
std::int32_t messageMax,
const Ice::Context & context = Ice::noExplicitContext ) const

Attaches a Ice::RemoteLoggerPrx object to the local logger, then calls Ice::RemoteLoggerPrx::init on prx.

This facet detaches the remote logger when a call to it fails.

Parameters
prxA proxy to the remote logger.
messageTypesThe list of message types that the remote logger wishes to receive. An empty list means no filtering (send all message types).
traceCategoriesThe categories of traces that the remote logger wishes to receive. This parameter is ignored if messageTypes is not empty and does not include trace. An empty list means no filtering (send all trace categories).
messageMaxThe maximum number of cached log messages (of all types) to be provided to Ice::RemoteLoggerPrx::init. A negative value requests all the cached messages, and 0 requests none. This parameter does not limit the log messages sent to Ice::RemoteLoggerPrx::log.
contextThe request context.
Exceptions
Ice::RemoteLoggerAlreadyAttachedExceptionThrown when a remote logger with the identity of prx is already attached to this facet.