C# Class SIL.Utils.SimpleLogger

An ISimpleLogger can be temporarily passed to a class which is not Dispsable in place of a TextWriter. This makes it unambiguous that the class using the logger is not responsible to dispose of it. The actual class is disposable and should normally be created in a Using clause. The logger can also track an indent.
Inheritance: ISimpleLogger, IDisposable
Mostra file Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
DecreaseIndent ( ) : void

For logging nested structures, decrements the current indent level.

Dispose ( ) : void
IncreaseIndent ( ) : void

For logging nested structures, increments the current indent level.

SimpleLogger ( ) : System

Make one (on a memory stream the logger is responsible for).

WriteLine ( string text ) : void

Write a line of text to the log (preceded by the current indent).

Protected Methods

Method Description
Dispose ( bool disposing ) : void

As a special case, this class does not HAVE to be disposed if it does not allow pictures.

Method Details

DecreaseIndent() public method

For logging nested structures, decrements the current indent level.
public DecreaseIndent ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

As a special case, this class does not HAVE to be disposed if it does not allow pictures.
protected Dispose ( bool disposing ) : void
disposing bool
return void

IncreaseIndent() public method

For logging nested structures, increments the current indent level.
public IncreaseIndent ( ) : void
return void

SimpleLogger() public method

Make one (on a memory stream the logger is responsible for).
public SimpleLogger ( ) : System
return System

WriteLine() public method

Write a line of text to the log (preceded by the current indent).
public WriteLine ( string text ) : void
text string
return void