Class Logger
public class Logger : ILogger
- Inheritance
-
Logger
- Implements
- Inherited Members
Constructors
Logger(string, InternalTraceLevel, TextWriter)
Initializes a new instance of the Logger class.
public Logger(string name, InternalTraceLevel level, TextWriter writer)
Parameters
name
stringThe name.
level
InternalTraceLevelThe log level.
writer
TextWriterThe writer where logs are sent.
Methods
Debug(string)
Logs the message at debug level.
public void Debug(string message)
Parameters
message
stringThe message.
Debug(string, params object[])
Logs the message at debug level.
public void Debug(string message, params object[] args)
Parameters
Error(string)
Logs the message at error level.
public void Error(string message)
Parameters
message
stringThe message.
Error(string, params object[])
Logs the message at error level.
public void Error(string message, params object[] args)
Parameters
Info(string)
Logs the message at info level.
public void Info(string message)
Parameters
message
stringThe message.
Info(string, params object[])
Logs the message at info level.
public void Info(string message, params object[] args)
Parameters
Warning(string)
Logs the message at warm level.
public void Warning(string message)
Parameters
message
stringThe message.
Warning(string, params object[])
Logs the message at warning level.
public void Warning(string message, params object[] args)