Edit

Share via


Logging class

Provides trace logging functionality.

C#
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.

C#
internal static void Associate(TraceSource traceSource, object objA, object objB)

Parameters

  • traceSource TraceSource

    The trace source to log the event to.

  • objA Object

    The object to associate with objB.

  • objB Object

    The object to associate with objA.

Enter(TraceSource, object, string, string) method

Logs entrance to a method.

C#
internal static void Enter(TraceSource traceSource, object obj, string method, string param)

Parameters

  • traceSource TraceSource

    The trace source to log the event to.

  • obj Object

    The object that the method was called on.

  • method String

    The method that is being entered.

  • param String

    The parameters that were passed to the method.

Enter(TraceSource, object, string, object) method

Logs entrance to a method.

C#
internal static void Enter(TraceSource traceSource, object obj, string method, object paramObject)

Parameters

  • traceSource TraceSource

    The trace source to log the event to.

  • obj Object

    The object that the method was called on.

  • method String

    The method that is being entered.

  • paramObject Object

    The parameters that were passed to the method.

Enter(TraceSource, string, string, string) method

Logs entrance to a method.

C#
internal static void Enter(TraceSource traceSource, string obj, string method, string param)

Parameters

  • traceSource TraceSource

    The trace source to log the event to.

  • obj String

    The object that the method was called on.

  • method String

    The method that is being entered.

  • param String

    The parameters that were passed to the method.

Enter(TraceSource, string, string, object) method

Logs entrance to a method.

C#
internal static void Enter(TraceSource traceSource, string obj, string method, object paramObject)

Parameters

  • traceSource TraceSource

    The trace source to log the event to.

  • obj String

    The object that the method was called on.

  • method String

    The method that is being entered.

  • paramObject Object

    The parameters that were passed to the method.

Enter(TraceSource, string, string) method

Logs entrance to a method.

C#
internal static void Enter(TraceSource traceSource, string method, string parameters)

Parameters

  • traceSource TraceSource

    The trace source to log the event to.

  • method String

    The method that is being entered.

  • parameters String

    The parameters that were passed to the method.

Enter(TraceSource, string) method

Logs entrance to a method.

C#
internal static void Enter(TraceSource traceSource, string msg)

Parameters

  • traceSource TraceSource

    The trace source to log the event to.

  • msg String

    The entrance message to log to the trace source.

Exception method

Logs an exception and restores indentation.

C#
internal static void Exception(TraceSource traceSource, object obj, string method, Exception e)

Parameters

  • traceSource TraceSource

    The trace source to log the event to.

  • obj Object

    The object that the method that threw an exception was called on.

  • method String

    The method that threw the exception.

  • e Exception

    The exception that was thrown.

Exit(TraceSource, object, string, object) method

Logs exit from a function.

C#
internal static void Exit(TraceSource traceSource, object obj, string method, object retObject)

Parameters

  • traceSource TraceSource

    The trace source to log the event to.

  • obj Object

    The object that the method was called on.

  • method String

    The method that is being exited.

  • retObject Object

    The value that's being returned by the method.

Exit(TraceSource, string, string, object) method

Logs exit from a function.

C#
internal static void Exit(TraceSource traceSource, string obj, string method, object retObject)

Parameters

  • traceSource TraceSource

    The trace source to log the event to.

  • obj String

    The object that the method was called on.

  • method String

    The method that is being exited.

  • retObject Object

    The value that's being returned by the method.

Exit(TraceSource, object, string, string) method

Logs exit from a function.

C#
internal static void Exit(TraceSource traceSource, object obj, string method, string retValue)

Parameters

  • traceSource TraceSource

    The trace source to log the event to.

  • obj Object

    The object that the method was called on.

  • method String

    The method that is being exited.

  • retValue String

    The value that's being returned by the method.

Exit(TraceSource, string, string, string) method

Logs exit from a function.

C#
internal static void Exit(TraceSource traceSource, string obj, string method, string retValue)

Parameters

  • traceSource TraceSource

    The trace source to log the event to.

  • obj String

    The object that the method was called on.

  • method String

    The method that is being exited.

  • retValue String

    The value that's being returned by the method.

Exit(TraceSource, string, string) method

Logs exit from a function.

C#
internal static void Exit(TraceSource traceSource, string method, string parameters)

Parameters

  • traceSource TraceSource

    The trace source to log the event to.

  • method String

    The method that is being exited.

  • parameters String

    The parameters that were passed to the method that's being exited.

Exit(TraceSource, string) method

Logs exit from a function.

C#
internal static void Exit(TraceSource traceSource, string msg)

Parameters

  • traceSource TraceSource

    The trace source to log the event to.

  • msg String

    The exit message to log to the trace source.

Http property

Gets the trace source for "System.Net.Http".

C#
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.

C#
internal static bool On { get; }

Property value

Boolean
true if logging is enabled; otherwise, false.

Requirements

Namespace: System.Net

Assembly: System (in System.dll)