C# Class Open.Core.LogWriter

An output log.
Inheritance: ModelBase, ILog
Exibir arquivo Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Properties

Property Type Description
ClassIcon string
EventIcon string

Private Properties

Property Type Description
ToIconPath string
WriteInternal void
WriteSeverity void

Public Methods

Method Description
Clear ( ) : void
Debug ( object message ) : void

Writes a debug message to the log.

Error ( object message ) : void

Writes an error message to the log.

Event ( object message ) : void
Info ( object message ) : void

Writes a informational message to the log.

LineBreak ( ) : void

Inserts a line break to the log.

LogWriter ( ) : System

Constructor.

NewSection ( ) : void

Inserts a new section divider.

Success ( object message ) : void

Writes a success message to the log.

Title ( string message ) : void

Writes a informational message to the log (as a bold title).

Warning ( object message ) : void

Writes a warning to the log.

Write ( object message, string backgroundColor ) : void
WriteDictionary ( object instance, string title ) : void
WriteIcon ( object message, Icons icon, string backgroundColor ) : void
WriteList ( string title, string backgroundColor ) : IHtmlList
WriteListSeverity ( string title, LogSeverity severity ) : IHtmlList
WriteProperties ( object instance, string title ) : void
WriteSeverity ( object message, LogSeverity severity, Icons icon ) : void

Protected Methods

Method Description
OnDisposed ( ) : void

Destructor.

Private Methods

Method Description
ToIconPath ( LogSeverity severity ) : string
WriteInternal ( object message, string cssClass, string backgroundColor, string iconPath ) : void
WriteSeverity ( object message, LogSeverity severity ) : void

Method Details

Clear() public method

public Clear ( ) : void
return void

Debug() public method

Writes a debug message to the log.
public Debug ( object message ) : void
message object The messge to write (HTML).
return void

Error() public method

Writes an error message to the log.
public Error ( object message ) : void
message object The messge to write (HTML).
return void

Event() public method

public Event ( object message ) : void
message object
return void

Info() public method

Writes a informational message to the log.
public Info ( object message ) : void
message object The messge to write (HTML).
return void

LineBreak() public method

Inserts a line break to the log.
public LineBreak ( ) : void
return void

LogWriter() public method

Constructor.
public LogWriter ( ) : System
return System

NewSection() public method

Inserts a new section divider.
public NewSection ( ) : void
return void

OnDisposed() protected method

Destructor.
protected OnDisposed ( ) : void
return void

Success() public method

Writes a success message to the log.
public Success ( object message ) : void
message object The messge to write (HTML).
return void

Title() public method

Writes a informational message to the log (as a bold title).
public Title ( string message ) : void
message string The messge to write (HTML).
return void

Warning() public method

Writes a warning to the log.
public Warning ( object message ) : void
message object The messge to write (HTML).
return void

Write() public method

public Write ( object message, string backgroundColor ) : void
message object
backgroundColor string
return void

WriteDictionary() public method

public WriteDictionary ( object instance, string title ) : void
instance object
title string
return void

WriteIcon() public method

public WriteIcon ( object message, Icons icon, string backgroundColor ) : void
message object
icon Icons
backgroundColor string
return void

WriteList() public method

public WriteList ( string title, string backgroundColor ) : IHtmlList
title string
backgroundColor string
return IHtmlList

WriteListSeverity() public method

public WriteListSeverity ( string title, LogSeverity severity ) : IHtmlList
title string
severity LogSeverity
return IHtmlList

WriteProperties() public method

public WriteProperties ( object instance, string title ) : void
instance object
title string
return void

WriteSeverity() public method

public WriteSeverity ( object message, LogSeverity severity, Icons icon ) : void
message object
severity LogSeverity
icon Icons
return void

Property Details

ClassIcon public_oe static_oe property

public static string ClassIcon
return string

EventIcon public_oe static_oe property

public static string EventIcon
return string