Class GraphLoggerWrapper
The ILogger wrapper for IGraphLogger.
Inheritance
GraphLoggerWrapper
Assembly: Microsoft.Graph.Communications.Common.dll
Syntax
public class GraphLoggerWrapper : ILogger
Constructors
GraphLoggerWrapper(IGraphLogger, String, Guid, LogEventType, IEnumerable<Object>)
Declaration
public GraphLoggerWrapper(IGraphLogger graphLogger, string component = null, Guid correlationId = default(Guid), LogEventType eventType = LogEventType.Trace, IEnumerable<object> properties = null)
Parameters
Type |
Name |
Description |
IGraphLogger |
graphLogger |
Graph logger instance
|
String |
component |
The component in which log is created
|
Guid |
correlationId |
The correlation identifier.
|
LogEventType |
eventType |
Log event type
|
IEnumerable<Object> |
properties |
Extra properties for the log event
|
Methods
BeginScope<TState>(TState)
Declaration
public IDisposable BeginScope<TState>(TState state)
Parameters
Type |
Name |
Description |
TState |
state |
|
Returns
Type Parameters
IsEnabled(LogLevel)
Declaration
public bool IsEnabled(LogLevel logLevel)
Parameters
Returns
Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, String>)
Declaration
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
Parameters
Type Parameters
Implements
Extension Methods