C# Класс Axiom.Core.Log

Log class for writing debug/log data to files.
Наследование: IDisposable
Показать файл Открыть проект

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

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

Called to dispose of this objects resources.

For the log, closes any open file streams and file writers.

Log ( string fileName ) : System

Constructor. Creates a log file that also logs debug output.

Log ( string fileName, bool debugOutput ) : System

Constructor.

Write ( LogMessageLevel level, bool maskDebug, string message ) : void

Write a message to the log.

Write ( bool maskDebug, string message ) : void

Write a message to the log.

Message is written with a LogMessageLevel of Normal, and debug output is not written.

Write ( string message ) : void

Write a message to the log.

Message is written with a LogMessageLevel of Normal, and debug output is not written.

Приватные методы

Метод Описание
FireMessageLogged ( LogMessageLevel level, bool maskDebug, string message ) : void

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

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

Called to dispose of this objects resources.
For the log, closes any open file streams and file writers.
public Dispose ( ) : void
Результат void

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

Constructor. Creates a log file that also logs debug output.
public Log ( string fileName ) : System
fileName string Name of the log file to open.
Результат System

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

Constructor.
public Log ( string fileName, bool debugOutput ) : System
fileName string Name of the log file to open.
debugOutput bool Write log messages to the debug output?
Результат System

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

Write a message to the log.
public Write ( LogMessageLevel level, bool maskDebug, string message ) : void
level LogMessageLevel Importance of this logged message.
maskDebug bool If true, debug output will not be written.
message string Message to write, which can include string formatting tokens.
Результат void

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

Write a message to the log.
Message is written with a LogMessageLevel of Normal, and debug output is not written.
public Write ( bool maskDebug, string message ) : void
maskDebug bool If true, debug output will not be written.
message string Message to write, which can include string formatting tokens.
Результат void

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

Write a message to the log.
Message is written with a LogMessageLevel of Normal, and debug output is not written.
public Write ( string message ) : void
message string Message to write, which can include string formatting tokens.
Результат void