A TraceTarget that writes log messages to text files.
Default constructor
public Void FlatFileTraceTarget()
File name.
public String FileName { get; set; }
Timestamp pattern to be replaced on the file name.
public String TimestampPattern { get; set; }
Check object configuration and prepares the environment if necessary.
public Void EnsureConfiguration()
Returns a textual representation of the FlatFileTraceTarget.
public String ToString()
Textual representarion of this object.
Writes the entry to this trace target.
public Void Write(writer, entry)
Name | Type | Summary |
---|---|---|
writer | LogWriter | The LogWriter that calls this ITraceTarget. |
entry | LogEntry | A LogEntry to write. |
In this document