C# Class Prebuild.Core.Utilities.Log

Summary description for Log.
Inheritance: IDisposable
Afficher le fichier Open project: aurora-sim/Aurora-Libs

Méthodes publiques

Méthode Description
Close ( ) : void

Closes and destroys this object

Same as Dispose(true)

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Flush ( ) : void

Flushes this instance.

Log ( LogTargets target, string fileName ) : System

Initializes a new instance of the Log class.

Write ( ) : void

Writes this instance.

Write ( LogType type, string format ) : void

Writes the specified type.

Write ( string msg ) : void

Writes the specified MSG.

WriteException ( LogType type, Exception ex ) : void

Writes the exception.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Dispose objects

Will dispose managed and unmanaged resources.

Method Details

Close() public méthode

Closes and destroys this object
Same as Dispose(true)
public Close ( ) : void
Résultat void

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Dispose objects
Will dispose managed and unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool /// If true, it will dispose close the handle ///
Résultat void

Flush() public méthode

Flushes this instance.
public Flush ( ) : void
Résultat void

Log() public méthode

Initializes a new instance of the Log class.
public Log ( LogTargets target, string fileName ) : System
target LogTargets The target.
fileName string Name of the file.
Résultat System

Write() public méthode

Writes this instance.
public Write ( ) : void
Résultat void

Write() public méthode

Writes the specified type.
public Write ( LogType type, string format ) : void
type LogType The type.
format string The format.
Résultat void

Write() public méthode

Writes the specified MSG.
public Write ( string msg ) : void
msg string The MSG.
Résultat void

WriteException() public méthode

Writes the exception.
public WriteException ( LogType type, Exception ex ) : void
type LogType The type.
ex System.Exception The ex.
Résultat void