C# Class WikiFunctions.Logging.TraceManager

An inheritable implementation of a Logging manager, built around a generic collection of IMyTraceListener objects and String keys
Inheritance: IMyTraceListener
Show file Open project: reedy/AutoWikiBrowser

Protected Properties

Property Type Description
Listeners IMyTraceListener>.Dictionary

Public Methods

Method Description
AddListener ( string key, IMyTraceListener listener ) : void

Override this if you want to programatically add an event handler

Close ( ) : void
ContainsKey ( string key ) : bool
ContainsValue ( IMyTraceListener listener ) : bool
Flush ( ) : void
ProcessingArticle ( string fullArticleTitle, int ns ) : void
RemoveListener ( string key ) : void

Override this if you want to programatically remove an event handler

SkippedArticle ( string skippedBy, string reason ) : void
SkippedArticleBadTag ( string skippedBy, string fullArticleTitle, int ns ) : void
SkippedArticleRedlink ( string skippedBy, string fullArticleTitle, int ns ) : void
Write ( string text ) : void
WriteArticleActionLine ( string line, string pluginName ) : void
WriteArticleActionLine ( string line, string pluginName, bool verboseOnly ) : void
WriteArticleActionLine1 ( string line, string pluginName, bool verboseOnly ) : void
WriteBulletedLine ( string line, bool bold, bool verboseOnly ) : void
WriteBulletedLine ( string line, bool bold, bool verboseOnly, bool dateStamp ) : void
WriteComment ( string line ) : void
WriteCommentAndNewLine ( string line ) : void
WriteLine ( string line ) : void
WriteTemplateAdded ( string templateName, string pluginName ) : void

Protected Methods

Method Description
TryGetValue ( string key, IMyTraceListener &listener ) : bool

Method Details

AddListener() public method

Override this if you want to programatically add an event handler
public AddListener ( string key, IMyTraceListener listener ) : void
key string
listener IMyTraceListener
return void

Close() public method

public Close ( ) : void
return void

ContainsKey() public method

public ContainsKey ( string key ) : bool
key string
return bool

ContainsValue() public method

public ContainsValue ( IMyTraceListener listener ) : bool
listener IMyTraceListener
return bool

Flush() public method

public Flush ( ) : void
return void

ProcessingArticle() public method

public ProcessingArticle ( string fullArticleTitle, int ns ) : void
fullArticleTitle string
ns int
return void

RemoveListener() public method

Override this if you want to programatically remove an event handler
public RemoveListener ( string key ) : void
key string Key to remove
return void

SkippedArticle() public method

public SkippedArticle ( string skippedBy, string reason ) : void
skippedBy string
reason string
return void

SkippedArticleBadTag() public method

public SkippedArticleBadTag ( string skippedBy, string fullArticleTitle, int ns ) : void
skippedBy string
fullArticleTitle string
ns int
return void

SkippedArticleRedlink() public method

public SkippedArticleRedlink ( string skippedBy, string fullArticleTitle, int ns ) : void
skippedBy string
fullArticleTitle string
ns int
return void

TryGetValue() protected method

protected TryGetValue ( string key, IMyTraceListener &listener ) : bool
key string
listener IMyTraceListener
return bool

Write() public method

public Write ( string text ) : void
text string
return void

WriteArticleActionLine() public method

public WriteArticleActionLine ( string line, string pluginName ) : void
line string
pluginName string
return void

WriteArticleActionLine() public method

public WriteArticleActionLine ( string line, string pluginName, bool verboseOnly ) : void
line string
pluginName string
verboseOnly bool
return void

WriteArticleActionLine1() public method

public WriteArticleActionLine1 ( string line, string pluginName, bool verboseOnly ) : void
line string
pluginName string
verboseOnly bool
return void

WriteBulletedLine() public method

public WriteBulletedLine ( string line, bool bold, bool verboseOnly ) : void
line string
bold bool
verboseOnly bool
return void

WriteBulletedLine() public method

public WriteBulletedLine ( string line, bool bold, bool verboseOnly, bool dateStamp ) : void
line string
bold bool
verboseOnly bool
dateStamp bool
return void

WriteComment() public method

public WriteComment ( string line ) : void
line string
return void

WriteCommentAndNewLine() public method

public WriteCommentAndNewLine ( string line ) : void
line string
return void

WriteLine() public method

public WriteLine ( string line ) : void
line string
return void

WriteTemplateAdded() public method

public WriteTemplateAdded ( string templateName, string pluginName ) : void
templateName string
pluginName string
return void

Property Details

Listeners protected property

protected Dictionary Listeners
return IMyTraceListener>.Dictionary