Logging class
Provides trace logging functionality.
internal class Logging
Warning
This class is internal and is not meant to be used directly in your code.
Microsoft does not support the use of this class in a production application under any circumstance.
Associate method
Logs information that two objects are associated with each other.
internal static void Associate(TraceSource traceSource, object objA, object objB)
Parameters
traceSource
TraceSourceThe trace source to log the event to.
objA
ObjectThe object to associate with
objB
.objB
ObjectThe object to associate with
objA
.
Enter(TraceSource, object, string, string) method
Logs entrance to a method.
internal static void Enter(TraceSource traceSource, object obj, string method, string param)
Parameters
traceSource
TraceSourceThe trace source to log the event to.
obj
ObjectThe object that the method was called on.
method
StringThe method that is being entered.
param
StringThe parameters that were passed to the method.
Enter(TraceSource, object, string, object) method
Logs entrance to a method.
internal static void Enter(TraceSource traceSource, object obj, string method, object paramObject)
Parameters
traceSource
TraceSourceThe trace source to log the event to.
obj
ObjectThe object that the method was called on.
method
StringThe method that is being entered.
paramObject
ObjectThe parameters that were passed to the method.
Enter(TraceSource, string, string, string) method
Logs entrance to a method.
internal static void Enter(TraceSource traceSource, string obj, string method, string param)
Parameters
traceSource
TraceSourceThe trace source to log the event to.
obj
StringThe object that the method was called on.
method
StringThe method that is being entered.
param
StringThe parameters that were passed to the method.
Enter(TraceSource, string, string, object) method
Logs entrance to a method.
internal static void Enter(TraceSource traceSource, string obj, string method, object paramObject)
Parameters
traceSource
TraceSourceThe trace source to log the event to.
obj
StringThe object that the method was called on.
method
StringThe method that is being entered.
paramObject
ObjectThe parameters that were passed to the method.
Enter(TraceSource, string, string) method
Logs entrance to a method.
internal static void Enter(TraceSource traceSource, string method, string parameters)
Parameters
traceSource
TraceSourceThe trace source to log the event to.
method
StringThe method that is being entered.
parameters
StringThe parameters that were passed to the method.
Enter(TraceSource, string) method
Logs entrance to a method.
internal static void Enter(TraceSource traceSource, string msg)
Parameters
traceSource
TraceSourceThe trace source to log the event to.
msg
StringThe entrance message to log to the trace source.
Exception method
Logs an exception and restores indentation.
internal static void Exception(TraceSource traceSource, object obj, string method, Exception e)
Parameters
traceSource
TraceSourceThe trace source to log the event to.
obj
ObjectThe object that the method that threw an exception was called on.
method
StringThe method that threw the exception.
-
The exception that was thrown.
Exit(TraceSource, object, string, object) method
Logs exit from a function.
internal static void Exit(TraceSource traceSource, object obj, string method, object retObject)
Parameters
traceSource
TraceSourceThe trace source to log the event to.
obj
ObjectThe object that the method was called on.
method
StringThe method that is being exited.
retObject
ObjectThe value that's being returned by the method.
Exit(TraceSource, string, string, object) method
Logs exit from a function.
internal static void Exit(TraceSource traceSource, string obj, string method, object retObject)
Parameters
traceSource
TraceSourceThe trace source to log the event to.
obj
StringThe object that the method was called on.
method
StringThe method that is being exited.
retObject
ObjectThe value that's being returned by the method.
Exit(TraceSource, object, string, string) method
Logs exit from a function.
internal static void Exit(TraceSource traceSource, object obj, string method, string retValue)
Parameters
traceSource
TraceSourceThe trace source to log the event to.
obj
ObjectThe object that the method was called on.
method
StringThe method that is being exited.
retValue
StringThe value that's being returned by the method.
Exit(TraceSource, string, string, string) method
Logs exit from a function.
internal static void Exit(TraceSource traceSource, string obj, string method, string retValue)
Parameters
traceSource
TraceSourceThe trace source to log the event to.
obj
StringThe object that the method was called on.
method
StringThe method that is being exited.
retValue
StringThe value that's being returned by the method.
Exit(TraceSource, string, string) method
Logs exit from a function.
internal static void Exit(TraceSource traceSource, string method, string parameters)
Parameters
traceSource
TraceSourceThe trace source to log the event to.
method
StringThe method that is being exited.
parameters
StringThe parameters that were passed to the method that's being exited.
Exit(TraceSource, string) method
Logs exit from a function.
internal static void Exit(TraceSource traceSource, string msg)
Parameters
traceSource
TraceSourceThe trace source to log the event to.
msg
StringThe exit message to log to the trace source.
Http property
Gets the trace source for "System.Net.Http".
internal static TraceSource Http { get; }
Property value
TraceSource
The trace source for "System.Net.Http", or null
if logging is not enabled.
On property
Gets a value that indicates whether logging is enabled.
internal static bool On { get; }
Property value
Boolean
true
if logging is enabled; otherwise, false
.
Requirements
Namespace: System.Net
Assembly: System (in System.dll)