C# Класс NAnt.Core.LogWriter

Implements a TextWriter for writing information to the NAnt logging infrastructure.
Наследование: System.IO.TextWriter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Close() публичный Метод

Closes the current writer and releases any system resources associated with the writer.
public Close ( ) : void
Результат void

Flush() публичный Метод

Causes any buffered data to be written to the logging infrastructure.
public Flush ( ) : void
Результат void

InitializeLifetimeService() публичный Метод

Obtains a lifetime service object to control the lifetime policy for this instance.
public InitializeLifetimeService ( ) : Object
Результат Object

LogWriter() публичный Метод

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.
Результат System

Write() публичный Метод

Writes a character array to the buffer.
public Write ( char chars ) : void
chars char The character array to write to the text stream.
Результат void

Write() публичный Метод

Writes a string to the buffer.
public Write ( string value ) : void
value string
Результат void

WriteLine() публичный Метод

Writes an empty string to the logging infrastructure.
public WriteLine ( ) : void
Результат void

WriteLine() публичный Метод

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.
Результат void