C# Класс Open.Core.LogWriter

An output log.
Наследование: ModelBase, ILog
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ClassIcon string
EventIcon string

Private Properties

Свойство Тип Описание
ToIconPath string
WriteInternal void
WriteSeverity void

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
OnDisposed ( ) : void

Destructor.

Приватные методы

Метод Описание
ToIconPath ( LogSeverity severity ) : string
WriteInternal ( object message, string cssClass, string backgroundColor, string iconPath ) : void
WriteSeverity ( object message, LogSeverity severity ) : void

Описание методов

Clear() публичный Метод

public Clear ( ) : void
Результат void

Debug() публичный Метод

Writes a debug message to the log.
public Debug ( object message ) : void
message object The messge to write (HTML).
Результат void

Error() публичный Метод

Writes an error message to the log.
public Error ( object message ) : void
message object The messge to write (HTML).
Результат void

Event() публичный Метод

public Event ( object message ) : void
message object
Результат void

Info() публичный Метод

Writes a informational message to the log.
public Info ( object message ) : void
message object The messge to write (HTML).
Результат void

LineBreak() публичный Метод

Inserts a line break to the log.
public LineBreak ( ) : void
Результат void

LogWriter() публичный Метод

Constructor.
public LogWriter ( ) : System
Результат System

NewSection() публичный Метод

Inserts a new section divider.
public NewSection ( ) : void
Результат void

OnDisposed() защищенный Метод

Destructor.
protected OnDisposed ( ) : void
Результат void

Success() публичный Метод

Writes a success message to the log.
public Success ( object message ) : void
message object The messge to write (HTML).
Результат void

Title() публичный Метод

Writes a informational message to the log (as a bold title).
public Title ( string message ) : void
message string The messge to write (HTML).
Результат void

Warning() публичный Метод

Writes a warning to the log.
public Warning ( object message ) : void
message object The messge to write (HTML).
Результат void

Write() публичный Метод

public Write ( object message, string backgroundColor ) : void
message object
backgroundColor string
Результат void

WriteDictionary() публичный Метод

public WriteDictionary ( object instance, string title ) : void
instance object
title string
Результат void

WriteIcon() публичный Метод

public WriteIcon ( object message, Icons icon, string backgroundColor ) : void
message object
icon Icons
backgroundColor string
Результат void

WriteList() публичный Метод

public WriteList ( string title, string backgroundColor ) : IHtmlList
title string
backgroundColor string
Результат IHtmlList

WriteListSeverity() публичный Метод

public WriteListSeverity ( string title, LogSeverity severity ) : IHtmlList
title string
severity LogSeverity
Результат IHtmlList

WriteProperties() публичный Метод

public WriteProperties ( object instance, string title ) : void
instance object
title string
Результат void

WriteSeverity() публичный Метод

public WriteSeverity ( object message, LogSeverity severity, Icons icon ) : void
message object
severity LogSeverity
icon Icons
Результат void

Описание свойств

ClassIcon публичное статическое свойство

public static string ClassIcon
Результат string

EventIcon публичное статическое свойство

public static string EventIcon
Результат string