Interface IInboundLogger<TCategoryName>
An ILogger<TCategoryName> with some specific methods to log inbound messages related events.
Namespace: Silverback.Diagnostics
Assembly: Silverback.Integration.dll
Syntax
public interface IInboundLogger<out TCategoryName> : ISilverbackLogger<TCategoryName>, ISilverbackLogger
Type Parameters
Name | Description |
---|---|
TCategoryName | The type who's name is used for the logger category name. |
Methods
| Improve this doc View sourceLogAlreadyProcessed(IRawInboundEnvelope)
Logs the MessageAlreadyProcessed event.
Declaration
void LogAlreadyProcessed(IRawInboundEnvelope envelope)
Parameters
Type | Name | Description |
---|---|---|
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |
LogCannotMoveSequences(IRawInboundEnvelope, ISequence)
Logs the CannotMoveSequences event.
Declaration
void LogCannotMoveSequences(IRawInboundEnvelope envelope, ISequence sequence)
Parameters
Type | Name | Description |
---|---|---|
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |
ISequence | sequence | The ISequence. |
LogInboundLowLevelTrace(string, IRawInboundEnvelope, Exception?, Func<object?[]>?)
Logs the LowLevelTracing event.
Declaration
void LogInboundLowLevelTrace(string message, IRawInboundEnvelope envelope, Exception? exception, Func<object?[]>? argumentsProvider = null)
Parameters
Type | Name | Description |
---|---|---|
string | message | The log message format string. |
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |
Exception | exception | The Exception to be logged. |
Func<object[]> | argumentsProvider | The Func<TResult> returning the arguments to be used to format the message. |
LogInboundLowLevelTrace(string, IRawInboundEnvelope, Func<object?[]>?)
Logs the LowLevelTracing event.
Declaration
void LogInboundLowLevelTrace(string message, IRawInboundEnvelope envelope, Func<object?[]>? argumentsProvider = null)
Parameters
Type | Name | Description |
---|---|---|
string | message | The log message format string. |
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |
Func<object[]> | argumentsProvider | The Func<TResult> returning the arguments to be used to format the message. |
LogInboundTrace(LogEvent, IRawInboundEnvelope, Exception?, Func<object?[]>?)
Logs the LowLevelTracing event.
Declaration
void LogInboundTrace(LogEvent logEvent, IRawInboundEnvelope envelope, Exception? exception, Func<object?[]>? argumentsProvider = null)
Parameters
Type | Name | Description |
---|---|---|
LogEvent | logEvent | The LogEvent. |
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |
Exception | exception | The Exception to be logged. |
Func<object[]> | argumentsProvider | The Func<TResult> returning the arguments to be used to format the message. |
Remarks
This method is less performing and therefore only events with Trace level are allowed.
LogInboundTrace(LogEvent, IRawInboundEnvelope, Func<object?[]>?)
Logs the LowLevelTracing event.
Declaration
void LogInboundTrace(LogEvent logEvent, IRawInboundEnvelope envelope, Func<object?[]>? argumentsProvider = null)
Parameters
Type | Name | Description |
---|---|---|
LogEvent | logEvent | The LogEvent. |
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |
Func<object[]> | argumentsProvider | The Func<TResult> returning the arguments to be used to format the message. |
Remarks
This method is less performing and therefore only events with Trace level are allowed.
LogMoved(IRawInboundEnvelope, IProducerEndpoint)
Logs the MessageMoved event.
Declaration
void LogMoved(IRawInboundEnvelope envelope, IProducerEndpoint targetEndpoint)
Parameters
Type | Name | Description |
---|---|---|
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |
IProducerEndpoint | targetEndpoint | The target IProducerEndpoint. |
LogNullMessageSkipped(IRawInboundEnvelope)
Logs the NullMessageSkipped event.
Declaration
void LogNullMessageSkipped(IRawInboundEnvelope envelope)
Parameters
Type | Name | Description |
---|---|---|
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |
LogProcessing(IRawInboundEnvelope)
Logs the ProcessingInboundMessage event.
Declaration
void LogProcessing(IRawInboundEnvelope envelope)
Parameters
Type | Name | Description |
---|---|---|
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |
LogProcessingError(IRawInboundEnvelope, Exception)
Logs the ErrorProcessingInboundMessage event.
Declaration
void LogProcessingError(IRawInboundEnvelope envelope, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |
Exception | exception | The Exception. |
LogProcessingFatalError(IRawInboundEnvelope, Exception)
Logs the ConsumerFatalError event.
Declaration
void LogProcessingFatalError(IRawInboundEnvelope envelope, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |
Exception | exception | The Exception. |
LogRetryProcessing(IRawInboundEnvelope)
Logs the RetryMessageProcessing event.
Declaration
void LogRetryProcessing(IRawInboundEnvelope envelope)
Parameters
Type | Name | Description |
---|---|---|
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |
LogRollbackToRetryFailed(IRawInboundEnvelope, Exception)
Logs the RollbackToRetryFailed event.
Declaration
void LogRollbackToRetryFailed(IRawInboundEnvelope envelope, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |
Exception | exception | The Exception. |
LogRollbackToSkipFailed(IRawInboundEnvelope, Exception)
Logs the RollbackToSkipFailed event.
Declaration
void LogRollbackToSkipFailed(IRawInboundEnvelope envelope, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |
Exception | exception | The Exception. |
LogSkipped(IRawInboundEnvelope)
Logs the MessageSkipped event.
Declaration
void LogSkipped(IRawInboundEnvelope envelope)
Parameters
Type | Name | Description |
---|---|---|
IRawInboundEnvelope | envelope | The IRawInboundEnvelope. |