Export (0) Print
Expand All

AdminTraceLogger Class

A logger that provides a configurable via registry tracing, which is good for setup including many processes (avoid editing many config files) and processes which we don't own (mmc) where we're hosted.

System.Object
  System.MarshalByRefObject
    Microsoft.TeamFoundation.Common.AdminTraceLogger

Namespace:  Microsoft.TeamFoundation.Common
Assembly:  Microsoft.TeamFoundation.Common (in Microsoft.TeamFoundation.Common.dll)

public class AdminTraceLogger : MarshalByRefObject, 
	ITFLogger

The AdminTraceLogger type exposes the following members.

  NameDescription
Public methodAdminTraceLogger()Initializes a new instance of the AdminTraceLogger class. This constructors reads TraceLevel from the the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\TeamFoundationServer\11.0\Admin\TraceLevel.
Public methodAdminTraceLogger(TraceLevel)Initializes a new instance of the AdminTraceLogger class.
Top

  NameDescription
Public propertyStatic memberDefaultThe default instance of the AdminTraceLogger.
Public propertyTraceLevelGets the TraceLevel of this logger.
Top

  NameDescription
Public methodCreateObjRefSecurity Critical. Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodDebug(String)Writes debug message to the trace. This constrained to dev debugging, so it's safe if you want to trace a password etc...
Public methodDebug(String, Object[])Writes debug message to the trace. This constrained to dev debugging, so it's safe if you want to trace a password etc...
Public methodEnter
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodError(Exception)Formats an exception and writes it as an error message to the trace.
Public methodError(String)Writes an error message to the trace.
Public methodError(String, Object[])Writes an error message to the trace.
Public methodExit
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetLifetimeServiceSecurity Critical. Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodHeadingWrites a heading lines to the trace.
Public methodHeading2Writes a heading lines to the trace.
Public methodInfo(String)Writes an informational message to the trace, provided that TraceLevel of this logger is set to TraceLevel.Info or TraceLevel.Verbose.
Public methodInfo(String, Object[])Writes an informational message to the trace, provided that TraceLevel of this logger is set to TraceLevel.Info or TraceLevel.Verbose.
Public methodInitializeLifetimeServiceSecurity Critical. Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected methodMemberwiseClone()Creates a shallow copy of the current Object. (Inherited from Object.)
Protected methodMemberwiseClone(Boolean)Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public methodRegisterPasswordAll Admin logging and tracing comes through the trace class. We will error if (1) the TFS_SCAN_PASSWORDS envvar is set and (2) it's debug This is expensive to enable but good for testing that passwords don't end up in a flight recorder trace or log Debug only so we don't care about passwords not being secure strings
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodVerbose(String)Writes a verbose message to the trace, provided that TraceLevel of this logger is set to TraceLevel.Verbose.
Public methodVerbose(String, Object[])Writes a verbose message to the trace, provided that TraceLevel of this logger is set to TraceLevel.Verbose.
Public methodWarning(Exception)Formats an exception and writes it as a warning message to the trace, provided that TraceLevel of this logger is set to TraceLevel.Warning, TraceLevel.Info or TraceLevel.Verbose.
Public methodWarning(String)Writes a warning message to the trace, provided that TraceLevel of this logger is set to TraceLevel.Warning, TraceLevel.Info, or TraceLevel.Verbose.
Public methodWarning(String, Object[])Writes a warning message to the trace, provided that TraceLevel of this logger is set to TraceLevel.Warning, TraceLevel.Info, or TraceLevel.Verbose.
Public methodWriteLine(TraceLevel, String)Writes a message to the trace, provided that traceLevel passed as first argument is is not lower than the logger TraceLevel. In debug build, this method can also ensure that output does not contain passwords.
Protected methodWriteLine(TraceLevel, String, Object[])
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft