Write an object to a TextWriter
Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
protected static void WriteObject( TextWriter writer, ILoggerRepository repository, Object value )
Parameters
- writer
- Type: System.IOTextWriter
the writer to write to - repository
- Type: log4net.RepositoryILoggerRepository
a ILoggerRepository to use for object conversion - value
- Type: SystemObject
the value to write to the writer
Remarks
Writes the Object to a writer. If the ILoggerRepository specified is not null then it is used to render the object to text, otherwise the object's ToString method is called.
See Also