Class Logging
Exposes a Logger property, which allows projects that use this library to set a custom logger
Inheritance
Namespace: Telerik.NetworkConnections
Assembly: Telerik.NetworkConnections.dll
Syntax
public static class Logging : Object
Methods
InitLogger(ILogger, Func<String, String>)
Initializes the static logger instance
Declaration
public static void InitLogger(ILogger logger, Func<string, string> cleanLogFunc)
Parameters
Microsoft.Extensions.Logging.ILogger
logger
Logging interface to use when a log call is issued |
System.Func<System.String, System.String>
cleanLogFunc
Function to use to sanitize log messages |
LogCritical(String)
Log a critical error message
Declaration
public static void LogCritical(string log)
Parameters
System.String
log
The message string. It will be sanitized if needed. |
LogDebug(String)
Log a debug message
Declaration
public static void LogDebug(string log)
Parameters
System.String
log
The message string. It will be sanitized if needed. |
LogError(String)
Log an error message
Declaration
public static void LogError(string log)
Parameters
System.String
log
The message string. It will be sanitized if needed. |
LogInformation(String)
Log an informational message
Declaration
public static void LogInformation(string log)
Parameters
System.String
log
The message string. It will be sanitized if needed. |
LogTrace(String)
Log a trace debug message
Declaration
public static void LogTrace(string log)
Parameters
System.String
log
The message string. It will be sanitized if needed. |
LogWarning(String)
Log a warning message
Declaration
public static void LogWarning(string log)
Parameters
System.String
log
The message string. It will be sanitized if needed. |