Class
Logging

Exposes a Logger property, which allows projects that use this library to set a custom logger

Definition

Namespace:Telerik.NetworkConnections

Assembly:Telerik.NetworkConnections.dll

Syntax:

cs-api-definition
public static class Logging

Inheritance: objectLogging

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()

Methods

InitLogger(ILogger, Func<string, string>)

Initializes the static logger instance

Declaration

cs-api-definition
public static void InitLogger(ILogger logger, Func<string, string> cleanLogFunc)

Parameters

logger

ILogger

Logging interface to use when a log call is issued

cleanLogFunc

Func<string, string>

Function to use to sanitize log messages

LogCritical(string)

Log a critical error message

Declaration

cs-api-definition
public static void LogCritical(string log)

Parameters

log

string

The message string. It will be sanitized if needed.

LogDebug(string)

Log a debug message

Declaration

cs-api-definition
public static void LogDebug(string log)

Parameters

log

string

The message string. It will be sanitized if needed.

LogError(string)

Log an error message

Declaration

cs-api-definition
public static void LogError(string log)

Parameters

log

string

The message string. It will be sanitized if needed.

LogInformation(string)

Log an informational message

Declaration

cs-api-definition
public static void LogInformation(string log)

Parameters

log

string

The message string. It will be sanitized if needed.

LogTrace(string)

Log a trace debug message

Declaration

cs-api-definition
public static void LogTrace(string log)

Parameters

log

string

The message string. It will be sanitized if needed.

LogWarning(string)

Log a warning message

Declaration

cs-api-definition
public static void LogWarning(string log)

Parameters

log

string

The message string. It will be sanitized if needed.