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

◆ attachRemoteLoggerAsync() [2/2]

std::function< void()> Ice::LoggerAdminPrx::attachRemoteLoggerAsync ( const std::optional< RemoteLoggerPrx > & prx,
const LogMessageTypeSeq & messageTypes,
const StringSeq & traceCategories,
std::int32_t messageMax,
std::function< void()> response,
std::function< void(std::exception_ptr)> exception = nullptr,
std::function< void(bool)> sent = nullptr,
const Ice::Context & context = Ice::noExplicitContext ) const

Attaches a Ice::RemoteLoggerPrx object to the local logger.

This operation calls Ice::RemoteLoggerPrx::init on prx.

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 log messages (of all types) to be provided to Ice::RemoteLoggerPrx::init. A negative value requests all messages available.
responseThe response callback. The Ice runtime calls this function from an Ice thread pool thread. If you set Ice::InitializationData::executor, the executor determines the thread that executes this function.
exceptionThe exception callback. The Ice runtime calls this function from an Ice thread pool thread. If you set Ice::InitializationData::executor, the executor determines the thread that executes this function.
sentThe sent callback. The Ice runtime calls this function when the request is accepted by the transport. When the request is accepted synchronously, the Ice runtime calls this function from the current thread and passes true as argument. When the request is accepted asynchronously, the Ice runtime calls this function from an Ice thread pool thread and passes false as argument. If you set Ice::InitializationData::executor, the executor determines the thread that executes this function in the asynchronous case.
contextThe request context.
Returns
A function that can be called to cancel the invocation locally.