C# Class NetMud.DataAccess.LoggingUtility

Publically available wrapper for logging
Afficher le fichier Open project: SwiftAusterity/NetMud Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
CommitLog ( string content, string channel, bool keepItQuiet ) : void

commits content to a log channel

Method Details

GetCurrentLogContent() public static méthode

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

GetCurrentLogNames() public static méthode

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

Log() public static méthode

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
Résultat void

LogAdminCommandUsage() public static méthode

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)
Résultat void

LogError() public static méthode

Log an exception
public static LogError ( Exception ex ) : void
ex System.Exception the exception
Résultat void

RolloverLog() public static méthode

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