FlatFileTraceTarget

A TraceTarget that writes log messages to text files.

Namespace:
Inetdev.Diagnostics.TraceTargets
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
Inetdev.Diagnostics.TraceTargets.TraceTarget

Constructors

FlatFileTraceTarget

Default constructor

Signature:
public Void FlatFileTraceTarget()

Properties

FileName

File name.

Signature:
public String FileName { get; set; }

TimestampPattern

Timestamp pattern to be replaced on the file name.

Signature:
public String TimestampPattern { get; set; }

Methods

EnsureConfiguration

Check object configuration and prepares the environment if necessary.

Signature:
public Void EnsureConfiguration()

ToString

Returns a textual representation of the FlatFileTraceTarget.

Signature:
public String ToString()
Returns

Textual representarion of this object.

Write

Writes the entry to this trace target.

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