C# Class NAnt.Core.LogWriter

Implements a TextWriter for writing information to the NAnt logging infrastructure.
Inheritance: System.IO.TextWriter
Datei anzeigen Open project: skolima/NAnt Class Usage Examples

Public Methods

Method Description
Close ( ) : void

Closes the current writer and releases any system resources associated with the writer.

Flush ( ) : void

Causes any buffered data to be written to the logging infrastructure.

InitializeLifetimeService ( ) : Object

Obtains a lifetime service object to control the lifetime policy for this instance.

LogWriter ( NAnt.Core.Task task, Level outputLevel, IFormatProvider formatProvider ) : System

Initializes a new instance of the LogWriter class for the specified Task with the specified output level and format provider.

Write ( char chars ) : void

Writes a character array to the buffer.

Write ( string value ) : void

Writes a string to the buffer.

WriteLine ( ) : void

Writes an empty string to the logging infrastructure.

WriteLine ( string value ) : void

Writes a string to the logging infrastructure.

Method Details

Close() public method

Closes the current writer and releases any system resources associated with the writer.
public Close ( ) : void
return void

Flush() public method

Causes any buffered data to be written to the logging infrastructure.
public Flush ( ) : void
return void

InitializeLifetimeService() public method

Obtains a lifetime service object to control the lifetime policy for this instance.
public InitializeLifetimeService ( ) : Object
return Object

LogWriter() public method

Initializes a new instance of the LogWriter class for the specified Task with the specified output level and format provider.
public LogWriter ( NAnt.Core.Task task, Level outputLevel, IFormatProvider formatProvider ) : System
task NAnt.Core.Task Determines the indentation level.
outputLevel Level The with which messages will be output to the build log.
formatProvider IFormatProvider An object that controls formatting.
return System

Write() public method

Writes a character array to the buffer.
public Write ( char chars ) : void
chars char The character array to write to the text stream.
return void

Write() public method

Writes a string to the buffer.
public Write ( string value ) : void
value string
return void

WriteLine() public method

Writes an empty string to the logging infrastructure.
public WriteLine ( ) : void
return void

WriteLine() public method

Writes a string to the logging infrastructure.
public WriteLine ( string value ) : void
value string The string to write. If is a null reference, only the line termination characters are written.
return void