Class LogEntry
A single entry in the log of the application.
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
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 SourceLogEntry(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 |
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 SourceLogColor
The color of the logged entry.
Declaration
public Color LogColor { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Color |
LogComponent
The component that logged the entry.
Declaration
public string LogComponent { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LogLevel
The level of the logged entry.
Declaration
public LogLevel LogLevel { get; set; }
Property Value
Type | Description |
---|---|
LogLevel |
LogString
The logged message.
Declaration
public string LogString { get; set; }
Property Value
Type | Description |
---|---|
System.String |
LogTime
The timestamp of the logged entry.
Declaration
public DateTime LogTime { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Implements
System.ComponentModel.INotifyPropertyChanged