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

Publically available wrapper for logging
Показать файл Открыть проект Примеры использования класса

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

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

Gets a current log file's contents

GetCurrentLogNames ( ) : IEnumerable

Gets all the current log file names in Current

Log ( string content, LogChannels channel, bool keepItQuiet = false ) : void

Log one entry to a pre-determined channel

LogAdminCommandUsage ( string commandString, string accountName ) : void

Log an admin command being used

LogError ( Exception ex ) : void

Log an exception

RolloverLog ( string channel ) : bool

Archives a log file

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

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

commits content to a log channel

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

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

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

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

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

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

Log one entry to a pre-determined channel
public static Log ( string content, LogChannels channel, bool keepItQuiet = false ) : void
content string the content to log
channel LogChannels which log to append it to
keepItQuiet bool Announce it in game or not
Результат void

LogAdminCommandUsage() публичный статический Метод

Log an admin command being used
public static LogAdminCommandUsage ( string commandString, string accountName ) : void
commandString string the command being used
accountName string the account using it (user not character)
Результат void

LogError() публичный статический Метод

Log an exception
public static LogError ( Exception ex ) : void
ex System.Exception the exception
Результат void

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

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