Class Log
Logging class
Inheritance
Namespace: PnP.Framework.Diagnostics
Assembly: PnP.Framework.dll
Syntax
public static class Log : object
Properties
Logger
Gets or sets ILogger object
Declaration
public static ILogger Logger { get; set; }
Property Value
ILogger
|
LogLevel
Gets or sets Log Level
Declaration
public static LogLevel LogLevel { get; set; }
Property Value
LogLevel
|
Methods
Debug(LogEntry)
Debug Log
Declaration
public static void Debug(LogEntry logEntry)
Parameters
LogEntry
logEntry
LogEntry object |
Debug(String, Exception, String, Object[])
Debug Log
Declaration
public static void Debug(string source, Exception ex, string message, params object[] args)
Parameters
System.String
source
Source string |
Exception
ex
Exception object |
System.String
message
Message string |
System.Object[]
args
Arguments object |
Debug(String, String, Object[])
Debug Log
Declaration
public static void Debug(string source, string message, params object[] args)
Parameters
System.String
source
Source stirng |
System.String
message
Message string |
System.Object[]
args
Arguments object |
Error(Exception, String, String, Object[])
Logs error message, source and exception
Declaration
public static void Error(Exception ex, string source, string message, params object[] args)
Parameters
Exception
ex
Exception object |
System.String
source
Error source |
System.String
message
Error message |
System.Object[]
args
Arguments object |
Error(LogEntry)
Error LogEntry
Declaration
public static void Error(LogEntry logEntry)
Parameters
LogEntry
logEntry
LogEntry object |
Error(String, String, Object[])
Logs error message and source
Declaration
public static void Error(string source, string message, params object[] args)
Parameters
System.String
source
Error source |
System.String
message
Error message |
System.Object[]
args
Arguments object |
Info(Exception, String, String, Object[])
Log Information
Declaration
public static void Info(Exception ex, string source, string message, params object[] args)
Parameters
Exception
ex
Exception object |
System.String
source
Source string |
System.String
message
Message string |
System.Object[]
args
Arguments option |
Info(LogEntry)
Log Information
Declaration
public static void Info(LogEntry logEntry)
Parameters
LogEntry
logEntry
LogEntry object |
Info(String, String, Object[])
Log Information
Declaration
public static void Info(string source, string message, params object[] args)
Parameters
System.String
source
Source string |
System.String
message
Message string |
System.Object[]
args
Arguments object |
Warning(LogEntry)
Warning Log
Declaration
public static void Warning(LogEntry logEntry)
Parameters
LogEntry
logEntry
LogEntry object |
Warning(String, Exception, String, Object[])
Warning Log
Declaration
public static void Warning(string source, Exception ex, string message, params object[] args)
Parameters
System.String
source
Source string |
Exception
ex
Exception object |
System.String
message
Message string |
System.Object[]
args
Arguments object |
Warning(String, String)
Log Warning
Declaration
public static void Warning(string source, string message)
Parameters
System.String
source
Source of event |
System.String
message
Message to log |
Warning(String, String, Object[])
Warning Log
Declaration
public static void Warning(string source, string message, params object[] args)
Parameters
System.String
source
Source string |
System.String
message
Message string |
System.Object[]
args
Arguments object |