Skip to content

Logging<T>

Namespace: SlottyMedia.LoggingProvider

Logging class to handle application logging using NLog.

public class Logging<T>

Type Parameters

T

Inheritance ObjectLogging<T>

Constructors

Logging()

Constructor for the Logging class.

public Logging()

Methods

LogTrace(String)

Logs a trace message.

public void LogTrace(string message)

Parameters

message String
The message to log.

LogDebug(String)

Logs a debug message.

public void LogDebug(string message)

Parameters

message String
The message to log.

LogInfo(String)

Logs an info message.

public void LogInfo(string message)

Parameters

message String
The message to log.

LogWarn(String)

Logs a warning message.

public void LogWarn(string message)

Parameters

message String
The message to log.

LogError(String)

Logs an error message.

public void LogError(string message)

Parameters

message String
The message to log.

LogFatal(String)

Logs a fatal message.

public void LogFatal(string message)

Parameters

message String
The message to log.

LogTrace(Exception, String)

Logs a trace message with an exception.

public void LogTrace(Exception ex, string message)

Parameters

ex Exception
The exception to log.

message String
The message to log.

LogDebug(Exception, String)

Logs a debug message with an exception.

public void LogDebug(Exception ex, string message)

Parameters

ex Exception
The exception to log.

message String
The message to log.

LogInfo(Exception, String)

Logs an info message with an exception.

public void LogInfo(Exception ex, string message)

Parameters

ex Exception
The exception to log.

message String
The message to log.

LogWarn(Exception, String)

Logs a warning message with an exception.

public void LogWarn(Exception ex, string message)

Parameters

ex Exception
The exception to log.

message String
The message to log.

LogError(Exception, String)

Logs an error message with an exception.

public void LogError(Exception ex, string message)

Parameters

ex Exception
The exception to log.

message String
The message to log.

LogFatal(Exception, String)

Logs a fatal message with an exception.

public void LogFatal(Exception ex, string message)

Parameters

ex Exception
The exception to log.

message String
The message to log.