LogWriter Class

Summary

Implements a System.IO.TextWriter for writing information to the NAnt logging infrastructure.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core
Base Types
  • TextWriter
graph BT Type-->Base0["TextWriter"] Type["LogWriter"] class Type type-node

Syntax

public class LogWriter : TextWriter

Constructors

Name Summary
LogWriter(Task, Level, IFormatProvider) Initializes a new instance of the NAnt.Core.LogWriter class for the specified NAnt.Core.Task with the specified output level and format provider.

Properties

Name Value Summary
Encoding Encoding
Gets the NAnt.Core.LogWriter.Encoding in which the output is written.
OutputLevel Level
Gets the NAnt.Core.Level with which messages will be output to the build log.

Methods

Name Value Summary
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.
Write(char[]) void
Writes a character array to the buffer.
Write(string) void
Writes a string to the buffer.
WriteLine() void
Writes an empty string to the logging infrastructure.
WriteLine(string) void
Writes a string to the logging infrastructure.
WriteLine(string, Object[]) void
Writes out a formatted string using the same semantics as string.Format(string, object[]).