C# Class Prebuild.Core.Utilities.Log

Summary description for Log.
Inheritance: IDisposable
Mostrar archivo Open project: aurora-sim/Aurora-Libs

Public Methods

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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Dispose objects

Will dispose managed and unmanaged resources.

Method Details

Close() public method

Closes and destroys this object
Same as Dispose(true)
public Close ( ) : void
return void

Dispose() public method

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

Dispose() protected method

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

Flush() public method

Flushes this instance.
public Flush ( ) : void
return void

Log() public method

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.
return System

Write() public method

Writes this instance.
public Write ( ) : void
return void

Write() public method

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

Write() public method

Writes the specified MSG.
public Write ( string msg ) : void
msg string The MSG.
return void

WriteException() public method

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