C# Класс Prebuild.Core.Utilities.Log

Summary description for Log.
Наследование: IDisposable
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Dispose objects

Will dispose managed and unmanaged resources.

Описание методов

Close() публичный Метод

Closes and destroys this object
Same as Dispose(true)
public Close ( ) : void
Результат void

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

Dispose objects
Will dispose managed and unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool /// If true, it will dispose close the handle ///
Результат void

Flush() публичный Метод

Flushes this instance.
public Flush ( ) : void
Результат void

Log() публичный Метод

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.
Результат System

Write() публичный Метод

Writes this instance.
public Write ( ) : void
Результат void

Write() публичный Метод

Writes the specified type.
public Write ( LogType type, string format ) : void
type LogType The type.
format string The format.
Результат void

Write() публичный Метод

Writes the specified MSG.
public Write ( string msg ) : void
msg string The MSG.
Результат void

WriteException() публичный Метод

Writes the exception.
public WriteException ( LogType type, Exception ex ) : void
type LogType The type.
ex System.Exception The ex.
Результат void