Show / Hide Table of Contents

Class LogEntry

A single entry in the log of the application.

Inheritance
System.Object
ViewModelBase
LogEntry
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
ViewModelBase.PropertyChanged
ViewModelBase.OnPropertyChanged(String)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RuriLib
Assembly: RuriLib.dll
Syntax
public class LogEntry : ViewModelBase, INotifyPropertyChanged

Constructors

| Improve this Doc View Source

LogEntry(String, String, LogLevel)

Creates a Log Entry given a component, a message and a level.

This constructor is used for logging messages coming from components of the View.

Declaration
public LogEntry(string logComponent, string logString, LogLevel logLevel)
Parameters
Type Name Description
System.String logComponent

The Component that is logging the entry

System.String logString

The message to log

LogLevel logLevel

The level of the log

| Improve this Doc View Source

LogEntry(String, Color)

Creates a Log Entry given a message and a color.

This constructor is used to generate entries for the Bot Log.

The level is Info and the component is an empty string.

Declaration
public LogEntry(string logString, Color logColor)
Parameters
Type Name Description
System.String logString

The message to log

System.Windows.Media.Color logColor

The color of the message

Properties

| Improve this Doc View Source

LogColor

The color of the logged entry.

Declaration
public Color LogColor { get; set; }
Property Value
Type Description
System.Windows.Media.Color
| Improve this Doc View Source

LogComponent

The component that logged the entry.

Declaration
public string LogComponent { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

LogLevel

The level of the logged entry.

Declaration
public LogLevel LogLevel { get; set; }
Property Value
Type Description
LogLevel
| Improve this Doc View Source

LogString

The logged message.

Declaration
public string LogString { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

LogTime

The timestamp of the logged entry.

Declaration
public DateTime LogTime { get; set; }
Property Value
Type Description
System.DateTime

Implements

System.ComponentModel.INotifyPropertyChanged
  • Improve this Doc
  • View Source
Back to top Generated by DocFX