LogTarget

Provides tracing services through a set of TraceTargets.

Namespace:
Inetdev.Diagnostics
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
System.Object
Implements:
System.IEquatable{Inetdev.Diagnostics.LogTarget}

Constructors

LogTarget

Default constructor

Signature:
public Void LogTarget()

Properties

Category

The message category that this log target writes message for.

Signature:
public String Category { get; set; }

TraceTargets

A collection of ITraceTargets to write logs to.

Signature:
public IList<ITraceTarget> TraceTargets { get; set; }

Methods

Equals

Checks whether other is equals to this object.

Signature:
public Boolean Equals(other)
Returns

true if the objects are equals, otherwise false.

Parameters
Name Type Summary
other LogTarget Another LogTarget to check.

Equals

Checks whether obj is equals to this object.

Signature:
public Boolean Equals(obj)
Returns

true if the objects are equals, otherwise false.

Parameters
Name Type Summary
obj Object Another Object to check.

GetHashCode

Not required, implemented to avoid warnings.

Signature:
public Int32 GetHashCode()

TraceData

Writes trace data to the trace listeners in the TraceTargets collection.

Signature:
public Void TraceData(writer, entry)
Parameters
Name Type Summary
writer LogWriter The LogWriter that calls this LogTarget.
entry LogEntry A LogEntry to write.