Class MicrosoftExtensionsLoggingLogger
- Namespace
- Splat.Microsoft.Extensions.Logging
- Assembly
- Splat.Microsoft.Extensions.Logging.dll
Microsoft.Extensions.Logging Logger integration into Splat.
public sealed class MicrosoftExtensionsLoggingLogger : ILogger
- Inheritance
-
MicrosoftExtensionsLoggingLogger
- Implements
- Extension Methods
Remarks
Initializes a new instance of the MicrosoftExtensionsLoggingLogger class.
Constructors
MicrosoftExtensionsLoggingLogger(ILogger)
Microsoft.Extensions.Logging Logger integration into Splat.
public MicrosoftExtensionsLoggingLogger(ILogger inner)
Parameters
inner
ILoggerThe actual Microsoft.Extensions.Logging logger.
Remarks
Initializes a new instance of the MicrosoftExtensionsLoggingLogger class.
Exceptions
- ArgumentNullException
Microsoft.Extensions.Logging logger not passed.
Properties
Level
Gets the level at which the target will emit messages.
public LogLevel Level { get; }
Property Value
Exceptions
- ArgumentNullException
Microsoft.Extensions.Logging logger not passed.
Methods
Write(Exception, string, LogLevel)
Writes a message to the target.
public void Write(Exception exception, string message, LogLevel logLevel)
Parameters
exception
ExceptionThe exception that occured.
message
stringThe message to write.
logLevel
LogLevelThe severity level of the log message.
Exceptions
- ArgumentNullException
Microsoft.Extensions.Logging logger not passed.
Write(Exception, string, Type, LogLevel)
Writes a messge to the target.
public void Write(Exception exception, string message, Type type, LogLevel logLevel)
Parameters
exception
ExceptionThe exception that occured.
message
stringThe message.
type
TypeThe type.
logLevel
LogLevelThe log level.
Exceptions
- ArgumentNullException
Microsoft.Extensions.Logging logger not passed.
Write(string, LogLevel)
Writes a message to the target.
public void Write(string message, LogLevel logLevel)
Parameters
Exceptions
- ArgumentNullException
Microsoft.Extensions.Logging logger not passed.
Write(string, Type, LogLevel)
Writes a messge to the target.
public void Write(string message, Type type, LogLevel logLevel)
Parameters
Exceptions
- ArgumentNullException
Microsoft.Extensions.Logging logger not passed.