C# Class NetMud.DataAccess.LoggingUtility

Publically available wrapper for logging
Mostrar archivo Open project: SwiftAusterity/NetMud Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
CommitLog ( string content, string channel, bool keepItQuiet ) : void

commits content to a log channel

Method Details

GetCurrentLogContent() public static method

Gets a current log file's contents
public static GetCurrentLogContent ( string channel ) : string
channel string the log file name
return string

GetCurrentLogNames() public static method

Gets all the current log file names in Current
public static GetCurrentLogNames ( ) : IEnumerable
return IEnumerable

Log() public static method

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
return void

LogAdminCommandUsage() public static method

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)
return void

LogError() public static method

Log an exception
public static LogError ( Exception ex ) : void
ex System.Exception the exception
return void

RolloverLog() public static method

Archives a log file
public static RolloverLog ( string channel ) : bool
channel string the log file to archive
return bool