C# Class DotNetMigrations.Contrib.TextLog.TextLog

Inheritance: LoggerBase
Afficher le fichier Open project: jpoehls/dotnetmigrations-contrib

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes of resources that were holding memory and other resources.

TextLog ( ) : System

Instantiates a new instance of the TextLog class

Write ( string message ) : void
WriteError ( string message ) : void

Writes an error message to the textual log file.

WriteLine ( string message ) : void

Write a message to the textual log file.

WriteWarning ( string message ) : void

Writes a warning message to the textual log file.

Private Methods

Méthode Description
GetLogFilePath ( ) : string

Obtains the Log File path from the configuration file's AppSettings section

Initialize ( ) : void

Initializes the logfile to write to.

Method Details

Dispose() public méthode

Disposes of resources that were holding memory and other resources.
public Dispose ( ) : void
Résultat void

TextLog() public méthode

Instantiates a new instance of the TextLog class
public TextLog ( ) : System
Résultat System

Write() public méthode

public Write ( string message ) : void
message string
Résultat void

WriteError() public méthode

Writes an error message to the textual log file.
public WriteError ( string message ) : void
message string The error message to log.
Résultat void

WriteLine() public méthode

Write a message to the textual log file.
public WriteLine ( string message ) : void
message string The message to log.
Résultat void

WriteWarning() public méthode

Writes a warning message to the textual log file.
public WriteWarning ( string message ) : void
message string The warning message to log.
Résultat void