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
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode 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).

Méthodes protégées

Méthode 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 méthode

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

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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
Résultat void

IncreaseIndent() public méthode

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

SimpleLogger() public méthode

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

WriteLine() public méthode

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