DataStoreErrorLogger Class¶
- Namespace
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
- Assemblies
- Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore
Syntax¶
public class DataStoreErrorLogger : ILogger
-
class
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.
DataStoreErrorLogger
Methods¶
-
BeginScope<TState>
(TState)¶ Return type: System.IDisposable public virtual IDisposable BeginScope<TState>(TState state)
-
IsEnabled
(Microsoft.Extensions.Logging.LogLevel)¶ Return type: System.Boolean public virtual bool IsEnabled(LogLevel logLevel)
-
Log<TState>
(Microsoft.Extensions.Logging.LogLevel, Microsoft.Extensions.Logging.EventId, TState, System.Exception, System.Func<TState, System.Exception, System.String>)¶ public virtual void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
-
StartLoggingForCurrentCallContext
()¶ public virtual void StartLoggingForCurrentCallContext()
-
Properties¶
-
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DataStoreErrorLogger.
LastError
¶ Return type: Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore.DataStoreErrorLogger.DataStoreErrorLog public virtual DataStoreErrorLogger.DataStoreErrorLog LastError { get; }
-