Class WrappingPrefixLogger
- Namespace
- Splat
- Assembly
- Splat.dll
A prefix logger which wraps a ILogger.
- Inheritance
-
Wrapping
Prefix Logger
- Implements
- Extension Methods
Remarks
Initializes a new instance of the Wrapping
Constructors
WrappingPrefixLogger(ILogger, Type)
A prefix logger which wraps a ILogger.
Parameters
inner
ILoggerThe ILogger to wrap in this class.
callingType
TypeThe type which will be calling this logger.
Remarks
Initializes a new instance of the Wrapping
Properties
Level
Gets the level at which the target will emit messages.
Property Value
Methods
Write(Exception, string, LogLevel)
Writes a message to the target.
Parameters
exception
ExceptionThe exception that occured.
message
stringThe message to write.
logLevel
LogLevel The severity level of the log message.
Write(Exception, string, Type, LogLevel)
Writes a message to the target.
Parameters
exception
ExceptionThe exception that occured.
message
stringThe message.
type
TypeThe type.
logLevel
LogLevel The log level.
Write(string, LogLevel)
Writes a message to the target.
Parameters
Write(string, Type, LogLevel)
Writes a message to the target.