Méthode | Description | |
---|---|---|
Dispose ( ) : void |
Call when logging is complete to clean up any resources (like a file handle).
|
|
Flush ( ) : void |
Flushes the contents of the log to ensure, in the case of writing to disk, that all content is written appropriately. Not all subclasses override this.
|
|
LogError ( string message ) : void |
Logs any errors to the log file provided filter levels allow for it.
|
|
LogImportant ( string message ) : void |
Logs the equivalent of a warning provided filter levels allow for it.
|
|
LogInfo ( string message ) : void |
Logs informational messages provided filtering allows for it.
|
|
Reset ( ) : void |
Reset the log file and start over. Not all subclasses will implement this.
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Does the real work of Dispose - cleaning up any resources owned by the logger. This class should be overridden in a subclass to provide real functionality.
|
|
Logger ( ) : System |
Default constructor for Logger. This constructor is protected due to the class being abstract.
|
|
_LogError ( string message ) : void |
Implemented by subclass. Called by this base class to have a subclass do the real work of the logging. This technique follows the strategy pattern.
|
|
_LogImportant ( string message ) : void |
Implemented by subclass. Called by this base class to have a subclass do the real work of the logging. This technique follows the strategy pattern.
|
|
_LogInfo ( string message ) : void |
Implemented by subclass. Called by this base class to have a subclass do the real work of the logging. This technique follows the strategy pattern.
|
Méthode | Description | |
---|---|---|
GetMessagePrefix ( ) : string |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Résultat | void |
public LogError ( string message ) : void | ||
message | string | Message to input to the log; can be formatted using FormatString /// parameters. |
Résultat | void |
public LogImportant ( string message ) : void | ||
message | string | Message to input to the log; can be formatted using FormatString /// parameters. |
Résultat | void |
public LogInfo ( string message ) : void | ||
message | string | Message to input to the log; can be formatted using FormatString /// parameters. |
Résultat | void |
protected abstract _LogError ( string message ) : void | ||
message | string | Message to log. |
Résultat | void |
protected abstract _LogImportant ( string message ) : void | ||
message | string | Message to log. |
Résultat | void |
protected abstract _LogInfo ( string message ) : void | ||
message | string | Message to log. |
Résultat | void |