Class MessageProcessingLogger
Inheritance
System.Object
MessageProcessingLogger
Assembly: Steeltoe.Extensions.Logging.Abstractions.dll
Syntax
public class MessageProcessingLogger : ILogger
Constructors
|
Edit this page
View Source
MessageProcessingLogger(ILogger, IEnumerable<IDynamicMessageProcessor>)
Declaration
public MessageProcessingLogger(ILogger iLogger, IEnumerable<IDynamicMessageProcessor> messageProcessors = null)
Parameters
Properties
|
Edit this page
View Source
Delegate
Declaration
public ILogger Delegate { get; }
Property Value
|
Edit this page
View Source
Filter
Declaration
public Func<string, LogLevel, bool> Filter { get; }
Property Value
Type |
Description |
Func<System.String, LogLevel, System.Boolean> |
|
|
Edit this page
View Source
Name
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Edit this page
View Source
BeginScope<TState>(TState)
Declaration
public IDisposable BeginScope<TState>(TState state)
Parameters
Type |
Name |
Description |
TState |
state |
|
Returns
Type |
Description |
IDisposable |
|
Type Parameters
|
Edit this page
View Source
IsEnabled(LogLevel)
Declaration
public bool IsEnabled(LogLevel logLevel)
Parameters
Type |
Name |
Description |
LogLevel |
logLevel |
|
Returns
Type |
Description |
System.Boolean |
|
|
Edit this page
View Source
Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, String>)
Declaration
public virtual void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
Parameters
Type |
Name |
Description |
LogLevel |
logLevel |
|
EventId |
eventId |
|
TState |
state |
|
Exception |
exception |
|
Func<TState, Exception, System.String> |
formatter |
|
Type Parameters
|
Edit this page
View Source
WriteMessage(LogLevel, String, Int32, String, Exception)
Declaration
public virtual void WriteMessage(LogLevel logLevel, string logName, int eventId, string message, Exception exception)
Parameters
Type |
Name |
Description |
LogLevel |
logLevel |
|
System.String |
logName |
|
System.Int32 |
eventId |
|
System.String |
message |
|
Exception |
exception |
|