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.
Logs information that two objects are associated with each other.
internal static void Associate(TraceSource traceSource, object objA, object objB)
traceSource
TraceSourceThe trace source to log the event to.
objA
ObjectThe object to associate with
objB
.objB
ObjectThe object to associate with
objA
.
Logs entrance to a method.
internal static void Enter(TraceSource traceSource, object obj, string method, string param)
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.
Logs entrance to a method.
internal static void Enter(TraceSource traceSource, object obj, string method, object paramObject)
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.
Logs entrance to a method.
internal static void Enter(TraceSource traceSource, string obj, string method, string param)
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.
Logs entrance to a method.
internal static void Enter(TraceSource traceSource, string obj, string method, object paramObject)
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.
Logs entrance to a method.
internal static void Enter(TraceSource traceSource, string method, string 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.
Logs entrance to a method.
internal static void Enter(TraceSource traceSource, string msg)
traceSource
TraceSourceThe trace source to log the event to.
msg
StringThe entrance message to log to the trace source.
Logs an exception and restores indentation.
internal static void Exception(TraceSource traceSource, object obj, string method, Exception e)
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.
Logs exit from a function.
internal static void Exit(TraceSource traceSource, object obj, string method, object retObject)
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.
Logs exit from a function.
internal static void Exit(TraceSource traceSource, string obj, string method, object retObject)
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.
Logs exit from a function.
internal static void Exit(TraceSource traceSource, object obj, string method, string retValue)
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.
Logs exit from a function.
internal static void Exit(TraceSource traceSource, string obj, string method, string retValue)
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.
Logs exit from a function.
internal static void Exit(TraceSource traceSource, string method, string 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.
Logs exit from a function.
internal static void Exit(TraceSource traceSource, string msg)
traceSource
TraceSourceThe trace source to log the event to.
msg
StringThe exit message to log to the trace source.
Gets the trace source for "System.Net.Http".
internal static TraceSource Http { get; }
TraceSource
The trace source for "System.Net.Http", or null
if logging is not enabled.
Gets a value that indicates whether logging is enabled.
internal static bool On { get; }
Boolean
true
if logging is enabled; otherwise, false
.
Namespace: System.Net
Assembly: System (in System.dll)
.NET feedback
.NET is an open source project. Select a link to provide feedback: