Interface AsyncRemoteLogger
- Namespace
- Ice
- Assembly
- Ice.dll
Receives the log messages sent by the Logger admin facet of a communicator.
[SliceTypeId("::Ice::RemoteLogger")]
public interface AsyncRemoteLogger : Object
- Inherited Members
Remarks
This Async interface maps each Slice operation to an asynchronous method that returns a Task. Your servant class implements this interface by deriving fromAsyncRemoteLoggerDisp_ or from the Disp_ class for a derived interface.
The Slice compiler generated this skeleton interface from Slice interface ::Ice::RemoteLogger.
Methods
initAsync(string, LogMessage[], Current)
Initializes this remote logger with the prefix and the most recent log messages of the logger of the communicator that hosts the Logger admin facet. This facet calls this operation once, after attachRemoteLoggerAsync(RemoteLoggerPrx?, LogMessageType[], string[], int, Dictionary<string, string>?, IProgress<bool>?, CancellationToken) attaches this remote logger.
Task initAsync(string prefix, LogMessage[] logMessages, Current current)
Parameters
prefixstringThe prefix of that logger.
logMessagesLogMessage[]The most recent log messages cached by the Logger admin facet that match the filters given to attachRemoteLoggerAsync(RemoteLoggerPrx?, LogMessageType[], string[], int, Dictionary<string, string>?, IProgress<bool>?, CancellationToken), oldest first, up to its
messageMax. This sequence is empty whenmessageMaxis 0.currentCurrentThe Current object for the dispatch.
Returns
- Task
A task that completes when the dispatch completes.
logAsync(LogMessage, Current)
Receives a log message that matches the filters given to attachRemoteLoggerAsync(RemoteLoggerPrx?, LogMessageType[], string[], int, Dictionary<string, string>?, IProgress<bool>?, CancellationToken).
Task logAsync(LogMessage message, Current current)
Parameters
messageLogMessageThe log message.
currentCurrentThe Current object for the dispatch.
Returns
- Task
A task that completes when the dispatch completes.
Remarks
The Logger admin facet can call logAsync(LogMessage, Dictionary<string, string>?, IProgress<bool>?, CancellationToken) before initAsync(string, LogMessage[], Dictionary<string, string>?, IProgress<bool>?, CancellationToken), even though the log messages passed to initAsync(string, LogMessage[], Dictionary<string, string>?, IProgress<bool>?, CancellationToken) are older.