C# Class NetMud.DataAccess.Logger

Internal file access for logging
Inheritance: NetMud.DataAccess.FileSystem.FileAccessor
Mostrar archivo Open project: SwiftAusterity/NetMud

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

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

Method Description
WriteLine ( string content, string channel ) : void

Writes content to a log file

Method Details

GetCurrentLogContent() public method

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

GetCurrentLogNames() public method

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

RolloverLog() public method

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

WriteToLog() public method

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

WriteToLog() public method

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