C# Класс NetMud.DataAccess.Logger

Internal file access for logging
Наследование: NetMud.DataAccess.FileSystem.FileAccessor
Показать файл Открыть проект

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

Метод Описание
GetCurrentLogContent ( string channel ) : string

Gets a current log file's contents

GetCurrentLogNames ( ) : IEnumerable

Gets all the current log file names in Current

RolloverLog ( string channel ) : bool

Archives a log file

WriteToLog ( string content, bool beQuiet = false ) : void

Write to a log

WriteToLog ( string content, string channel, bool beQuiet = false ) : void

Write to a log

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

Метод Описание
WriteLine ( string content, string channel ) : void

Writes content to a log file

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

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

Gets a current log file's contents
public GetCurrentLogContent ( string channel ) : string
channel string the log file name
Результат string

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

Gets all the current log file names in Current
public GetCurrentLogNames ( ) : IEnumerable
Результат IEnumerable

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

Archives a log file
public RolloverLog ( string channel ) : bool
channel string the log file to archive
Результат bool

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

Write to a log
public WriteToLog ( string content, bool beQuiet = false ) : void
content string the content to log
beQuiet bool Announce it in game or not
Результат void

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

Write to a log
public WriteToLog ( string content, string channel, bool beQuiet = false ) : void
content string the content to log
channel string which log to append it to
beQuiet bool
Результат void