TraceListener to be used in the App.Config file of the executable to write trace/log data to a file.
More...
|
| FileTraceListener (string fileName) |
| Initializes a new instance of the FileTraceListener class. More...
|
|
| FileTraceListener (Stream stream) |
| Initializes a new instance of the OpenTap.FileTraceListener class, using the stream as the recipient of the debugging and tracing output. More...
|
|
override void | TraceEvents (IEnumerable< Event > events) |
| Receives all log messages. The virtual method simply calls TraceEvent(string, LogEventType, int, string) directly.
|
|
| TextWriterTraceListener (string filename) |
| Creates a new TextWriterTraceListener writing to the given filename.
|
|
| TextWriterTraceListener (Stream stream) |
| Creates a new TextWriterTraceListener writing to the given stream.
|
|
override void | Write (string message) |
| Writes a string to the current Writer.
|
|
override void | WriteLine (string message) |
| Writes a string including a newline to the current Writer.
|
|
override void | Flush () |
| Flushes the log system and the current Writer.
|
|
void | Dispose () |
| Frees up the writer.
|
|
virtual void | TraceEvent (string source, LogEventType eventType, int id, string format) |
| Empty TraceEvent method.
|
|
virtual void | TraceEvent (string source, LogEventType eventType, int id, string format, params object[] args) |
| Empty TraceEvent method.
|
|
|
ulong | FileSizeLimit = ulong.MaxValue |
| Installs a file limit. When the limit is reached FileSIzeLimitReached is invoked.
|
|
|
bool | IsRelative [getset] |
| If the log should be written with absolute or relative time.
|
|
string | FileName [get] |
| The current file name of the trace file.
|
|
TextWriter | Writer [getset] |
| The writer that is used as the output.
|
|
TraceListener to be used in the App.Config file of the executable to write trace/log data to a file.
◆ FileTraceListener() [1/2]
OpenTap.FileTraceListener.FileTraceListener |
( |
string |
fileName | ) |
|
|
inline |
Initializes a new instance of the FileTraceListener class.
- Parameters
-
fileName | Name of the file to write to. |
◆ FileTraceListener() [2/2]
OpenTap.FileTraceListener.FileTraceListener |
( |
Stream |
stream | ) |
|
|
inline |
Initializes a new instance of the OpenTap.FileTraceListener class, using the stream as the recipient of the debugging and tracing output.
- Parameters
-
stream | A System.IO.Stream that represents the stream the System.Diagnostics.TextWriterTraceListener writes to. |