Class PnPMonitoredScope
Class holds the methods for logging on PnP Monitoring
Inherited Members
Namespace: PnP.Framework.Diagnostics
Assembly: PnP.Framework.dll
Syntax
public sealed class PnPMonitoredScope : TreeNode<PnPMonitoredScope>, ITreeNode<PnPMonitoredScope>, ITreeNode
Constructors
PnPMonitoredScope()
Constructor for PnPMonitoredScope class
Declaration
public PnPMonitoredScope()
PnPMonitoredScope(String)
Constructor for PnPMonitoredScope class
Declaration
public PnPMonitoredScope(string name)
Parameters
System.String
name
Source name |
Properties
CorrelationId
Gets Correlation Guid
Declaration
public Guid CorrelationId { get; }
Property Value
Guid
|
Name
Gets or sets the source name
Declaration
public string Name { get; set; }
Property Value
System.String
|
Methods
Dispose()
Declaration
public void Dispose()
LogDebug(Exception, String, Object[])
Debug Log
Declaration
public void LogDebug(Exception ex, string message, params object[] args)
Parameters
Exception
ex
Exception object |
System.String
message
Message string |
System.Object[]
args
Arguments object |
LogDebug(String, Object[])
Debug Log
Declaration
public void LogDebug(string message, params object[] args)
Parameters
System.String
message
Message string |
System.Object[]
args
Arguments object |
LogError(Exception, String, Object[])
Logs Error
Declaration
public void LogError(Exception ex, string message, params object[] args)
Parameters
Exception
ex
Exception object |
System.String
message
Message string |
System.Object[]
args
Arguments object |
LogError(String, Object[])
Logs Error
Declaration
public void LogError(string message, params object[] args)
Parameters
System.String
message
Message string |
System.Object[]
args
Arguments object |
LogInfo(Exception, String, Object[])
Logs Information
Declaration
public void LogInfo(Exception ex, string message, params object[] args)
Parameters
Exception
ex
Exception object |
System.String
message
Message string |
System.Object[]
args
Arguments object |
LogInfo(String, Object[])
Logs Information
Declaration
public void LogInfo(string message, params object[] args)
Parameters
System.String
message
Message string |
System.Object[]
args
Arguments object |
LogWarning(Exception, String, Object[])
Logs Warning
Declaration
public void LogWarning(Exception ex, string message, params object[] args)
Parameters
Exception
ex
Exception object |
System.String
message
Message string |
System.Object[]
args
Arguments object |
LogWarning(String, Object[])
Logs Warning
Declaration
public void LogWarning(string message, params object[] args)
Parameters
System.String
message
Message string |
System.Object[]
args
Arguments object |