Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
traceSourceTraceSourceThe trace source to log the event to.
objAObjectThe object to associate with
objB.objBObjectThe 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
traceSourceTraceSourceThe trace source to log the event to.
objObjectThe object that the method was called on.
methodStringThe method that is being entered.
paramStringThe 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
traceSourceTraceSourceThe trace source to log the event to.
objObjectThe object that the method was called on.
methodStringThe method that is being entered.
paramObjectObjectThe 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
traceSourceTraceSourceThe trace source to log the event to.
objStringThe object that the method was called on.
methodStringThe method that is being entered.
paramStringThe 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
traceSourceTraceSourceThe trace source to log the event to.
objStringThe object that the method was called on.
methodStringThe method that is being entered.
paramObjectObjectThe 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
traceSourceTraceSourceThe trace source to log the event to.
methodStringThe method that is being entered.
parametersStringThe 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
traceSourceTraceSourceThe trace source to log the event to.
msgStringThe 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
traceSourceTraceSourceThe trace source to log the event to.
objObjectThe object that the method that threw an exception was called on.
methodStringThe 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
traceSourceTraceSourceThe trace source to log the event to.
objObjectThe object that the method was called on.
methodStringThe method that is being exited.
retObjectObjectThe 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
traceSourceTraceSourceThe trace source to log the event to.
objStringThe object that the method was called on.
methodStringThe method that is being exited.
retObjectObjectThe 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
traceSourceTraceSourceThe trace source to log the event to.
objObjectThe object that the method was called on.
methodStringThe method that is being exited.
retValueStringThe 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
traceSourceTraceSourceThe trace source to log the event to.
objStringThe object that the method was called on.
methodStringThe method that is being exited.
retValueStringThe 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
traceSourceTraceSourceThe trace source to log the event to.
methodStringThe method that is being exited.
parametersStringThe 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
traceSourceTraceSourceThe trace source to log the event to.
msgStringThe 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)