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

◆ getLogAsync()

virtual void Ice::AsyncLoggerAdmin::getLogAsync ( LogMessageTypeSeq messageTypes,
StringSeq traceCategories,
std::int32_t messageMax,
std::function< void(const LogMessageSeq &returnValue, std::string_view prefix)> response,
std::function< void(std::exception_ptr)> exception,
const Ice::Current & current )
pure virtual

Retrieves the most recent log messages cached by this facet, oldest first.

The properties Ice.Admin.Logger.KeepLogs and Ice.Admin.Logger.KeepTraces set how many log messages it caches.

Parameters
messageTypesThe list of message types that the caller wishes to receive. An empty list means no filtering (send all message types).
traceCategoriesThe categories of traces that the caller 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 returned. A negative value requests all the cached messages, and 0 requests none.
responseThe response callback. It accepts:
  • returnValue The log messages.
  • prefix The prefix of the associated local logger.
exceptionThe exception callback.
currentThe Current object of the incoming request.