C# 클래스 NetMud.DataAccess.LoggingUtility

Publically available wrapper for logging
파일 보기 프로젝트 열기: SwiftAusterity/NetMud 1 사용 예제들

공개 메소드들

메소드 설명
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