Table of Contents

Interface ILogger

Defines methods for logging messages, errors, warnings, exceptions etc.

public interface ILogger : IDisposable
Inherited Members

Methods

Log(string, string, int)

Logs a message.

void Log(string className, string message, int lineNumber = 0)

Parameters

className string

The name of the class logging the message.

message string

The message to log.

lineNumber int

caller line number

LogError(string, string, int)

Logs an error message.

void LogError(string className, string message, int lineNumber = 0)

Parameters

className string

The name of the class logging the error message.

message string

The error message to log.

lineNumber int

caller line number

LogException(string, Exception, int)

Logs an exception.

void LogException(string className, Exception exception, int lineNumber = 0)

Parameters

className string

The name of the class logging the exception.

exception Exception

The exception to log.

lineNumber int

caller line number

LogWarning(string, string, int)

Logs a warning message.

void LogWarning(string className, string message, int lineNumber = 0)

Parameters

className string

The name of the class logging the warning message.

message string

The warning message to log.

lineNumber int

caller line number