C# Class NetMud.DataAccess.Logger

Internal file access for logging
Inheritance: NetMud.DataAccess.FileSystem.FileAccessor
Afficher le fichier Open project: SwiftAusterity/NetMud

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

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

Private Methods

Méthode Description
WriteLine ( string content, string channel ) : void

Writes content to a log file

Method Details

GetCurrentLogContent() public méthode

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

GetCurrentLogNames() public méthode

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

RolloverLog() public méthode

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

WriteToLog() public méthode

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

WriteToLog() public méthode

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