IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Common.InternalTraceWriter Class Reference

A trace listener that writes to a separate file per domain and process using it. More...

+ Inheritance diagram for NUnit.Common.InternalTraceWriter:
+ Collaboration diagram for NUnit.Common.InternalTraceWriter:

Public Member Functions

 InternalTraceWriter (string logPath)
 Construct an InternalTraceWriter that writes to a file. More...
 
 InternalTraceWriter (TextWriter writer)
 Construct an InternalTraceWriter that writes to a TextWriter provided by the caller. More...
 
override void Write (char value)
 Writes a character to the text string or stream. More...
 
override void Write (string value)
 Writes a string to the text string or stream. More...
 
override void WriteLine (string value)
 Writes a string followed by a line terminator to the text string or stream. More...
 
override void Flush ()
 Clears all buffers for the current writer and causes any buffered data to be written to the underlying device. More...
 

Protected Member Functions

override void Dispose (bool disposing)
 Releases the unmanaged resources used by the T:System.IO.TextWriter and optionally releases the managed resources. More...
 

Properties

override System.Text.Encoding Encoding [get]
 Returns the character encoding in which the output is written. More...
 

Private Attributes

TextWriter writer
 
object myLock = new object()
 

Detailed Description

A trace listener that writes to a separate file per domain and process using it.

Constructor & Destructor Documentation

NUnit.Common.InternalTraceWriter.InternalTraceWriter ( string  logPath)
inline

Construct an InternalTraceWriter that writes to a file.

Parameters
logPathPath to the file to use
NUnit.Common.InternalTraceWriter.InternalTraceWriter ( TextWriter  writer)
inline

Construct an InternalTraceWriter that writes to a TextWriter provided by the caller.

Parameters
writer

Member Function Documentation

override void NUnit.Common.InternalTraceWriter.Write ( char  value)
inline

Writes a character to the text string or stream.

Parameters
valueThe character to write to the text stream.
override void NUnit.Common.InternalTraceWriter.Write ( string  value)
inline

Writes a string to the text string or stream.

Parameters
valueThe string to write.
override void NUnit.Common.InternalTraceWriter.WriteLine ( string  value)
inline

Writes a string followed by a line terminator to the text string or stream.

Parameters
valueThe string to write. If value is null, only the line terminator is written.

Referenced by NUnit.Common.InternalTrace.Initialize().

override void NUnit.Common.InternalTraceWriter.Dispose ( bool  disposing)
inlineprotected

Releases the unmanaged resources used by the T:System.IO.TextWriter and optionally releases the managed resources.

Parameters
disposingtrue to release both managed and unmanaged resources; false to release only unmanaged resources.
override void NUnit.Common.InternalTraceWriter.Flush ( )
inline

Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.

Member Data Documentation

TextWriter NUnit.Common.InternalTraceWriter.writer
private
object NUnit.Common.InternalTraceWriter.myLock = new object()
private

Property Documentation

override System.Text.Encoding NUnit.Common.InternalTraceWriter.Encoding
get

Returns the character encoding in which the output is written.

Returns
The character encoding in which the output is written.

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