Click or drag to resize

DHITracer Class

Wrapper around the microsoft TraceSwitch class Messages are prepended with "Level (DisplayName, DateTime.Now)::". To get the message itself, split the string on "::"
Inheritance Hierarchy

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public class DHITracer : TraceSwitch

The DHITracer type exposes the following members.

Constructors
  NameDescription
Public methodDHITracer
Default constructor
Top
Properties
  NameDescription
Public propertyAttributes
Gets the custom switch attributes defined in the application configuration file.
(Inherited from Switch.)
Public propertyDescription
Gets a description of the switch.
(Inherited from Switch.)
Public propertyDisplayName
Gets a name used to identify the switch.
(Inherited from Switch.)
Public propertyLevel
Gets or sets the trace level that determines the messages the switch allows.
(Inherited from TraceSwitch.)
Protected propertySwitchSetting
Gets or sets the current setting for this switch.
(Inherited from Switch.)
Public propertyTraceError
Gets a value indicating whether the switch allows error-handling messages.
(Inherited from TraceSwitch.)
Public propertyTraceInfo
Gets a value indicating whether the switch allows informational messages.
(Inherited from TraceSwitch.)
Public propertyTraceVerbose
Gets a value indicating whether the switch allows all messages.
(Inherited from TraceSwitch.)
Public propertyTraceWarning
Gets a value indicating whether the switch allows warning messages.
(Inherited from TraceSwitch.)
Protected propertyValue
Gets or sets the value of the switch.
(Inherited from Switch.)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodError
Record an error trace message
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetSupportedAttributes
Gets the custom attributes supported by the switch.
(Inherited from Switch.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInfo
Record an info trace message
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnSwitchSettingChanged
Updates and corrects the level for this switch.
(Inherited from TraceSwitch.)
Protected methodOnValueChanged
Sets the SwitchSetting property to the integer equivalent of the Value property.
(Inherited from TraceSwitch.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodVerbose
Record a verbose trace message
Public methodWarning
Record warning trace message
Top
See Also