C# Class DotNetMigrations.Contrib.TextLog.TextLog

Inheritance: LoggerBase
Exibir arquivo Open project: jpoehls/dotnetmigrations-contrib

Public Methods

Method 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

Method 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 method

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

TextLog() public method

Instantiates a new instance of the TextLog class
public TextLog ( ) : System
return System

Write() public method

public Write ( string message ) : void
message string
return void

WriteError() public method

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

WriteLine() public method

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

WriteWarning() public method

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