UA Bundle SDK .NET  2.1.0.222
 All Classes Namespaces Functions Variables Enumerations Properties Events Groups Pages
UnifiedAutomation.UaBase.TraceFileListener Class Reference

Implements a trace listener that writes to a file on disk. More...

Inherits UnifiedAutomation.UaBase.ITraceListener.

Public Member Functions

void Open ()
 Opens the listener for writing.
 
void Output (TraceEntry entry)
 Writes a trace entry to the listener.
 
void Close ()
 Closes the listener.
 
void Dispose ()
 Frees any unmanaged resources.
 
- Public Member Functions inherited from UnifiedAutomation.UaBase.ITraceListener
void Open ()
 Opens the listener for writing.
 
void Output (TraceEntry entry)
 Writes a trace entry to the listener.
 
void Close ()
 Closes the listener.
 

Properties

string LogFilePath [get, set]
 The path to the log file.
 
byte MaxLogFileBackups [get, set]
 The maximum number of backup files to keep.
 
uint MaxEntriesPerLog [get, set]
 The maximum number of entries in the trace file
 
bool FastTrace [get, set]
 Whether the entries should be written to disk immediately.
 

Detailed Description

Implements a trace listener that writes to a file on disk.

Member Function Documentation

void UnifiedAutomation.UaBase.TraceFileListener.Close ( )

Closes the listener.

void UnifiedAutomation.UaBase.TraceFileListener.Dispose ( )

Frees any unmanaged resources.

void UnifiedAutomation.UaBase.TraceFileListener.Open ( )

Opens the listener for writing.

void UnifiedAutomation.UaBase.TraceFileListener.Output ( TraceEntry  entry)

Writes a trace entry to the listener.

Parameters
entryThe entry to write to the trace log.

Property Documentation

bool UnifiedAutomation.UaBase.TraceFileListener.FastTrace
getset

Whether the entries should be written to disk immediately.

true if new log entries are flushed immediately; otherwise, false.

string UnifiedAutomation.UaBase.TraceFileListener.LogFilePath
getset

The path to the log file.

The log file path.

uint UnifiedAutomation.UaBase.TraceFileListener.MaxEntriesPerLog
getset

The maximum number of entries in the trace file

The max entries per log.

byte UnifiedAutomation.UaBase.TraceFileListener.MaxLogFileBackups
getset

The maximum number of backup files to keep.

The max log file backups.


The documentation for this class was generated from the following file: