Class WrappingPrefixLogger
- Namespace
- Splat
- Assembly
- Splat.dll
A prefix logger which wraps a ILogger.
public class WrappingPrefixLogger : ILogger
- Inheritance
-
WrappingPrefixLogger
- Implements
- Extension Methods
Remarks
Initializes a new instance of the WrappingPrefixLogger class. Placeholder.
Constructors
WrappingPrefixLogger(ILogger, Type)
A prefix logger which wraps a ILogger.
public WrappingPrefixLogger(ILogger inner, Type callingType)
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 WrappingPrefixLogger class. Placeholder.
Properties
Level
Gets the level at which the target will emit messages.
public LogLevel Level { get; }
Property Value
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.
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.
Write(string, LogLevel)
Writes a message to the target.
public void Write(string message, LogLevel logLevel)
Parameters
Write(string, Type, LogLevel)
Writes a messge to the target.
public void Write(string message, Type type, LogLevel logLevel)