Volume Control
Application-specific hotkeys for Windows
|
Represents a message to be written to the log. More...
Public Member Functions | |
LogMessage (EventType eventType, params object?[] lines) | |
Creates a new LogMessage instance with the specified eventType . More... | |
LogMessage (EventType eventType) | |
Creates a new empty LogMessage instance with the specified eventType . More... | |
LogMessage (params object?[] lines) | |
Creates a new LogMessage instance with the specified lines and an undefined EventType. More... | |
override string | ToString () |
Gets the contents of the log message as a single string. More... | |
LogMessage | Add (object? line) |
Appends the specified line to the message. More... | |
LogMessage | SetEventType (EventType eventType) |
Pipeline method that sets the event type of this log message. More... | |
IEnumerator< object?> | GetEnumerator () |
Static Public Member Functions | |
static implicit | operator LogMessage (string s) |
Converts a string to a new LogMessage instance. More... | |
Properties | |
EventType | EventType [get, set] |
Gets or sets the event type of this message. More... | |
bool | HasEventType [get] |
Gets whether this LogMessage instance has an EventType or not. More... | |
List< object?> | Lines [get, set] |
Gets or sets the lines in this message. More... | |
bool | IsEmpty [get] |
Gets whether there are any lines in this message. More... | |
Represents a message to be written to the log.
VolumeControl.Log.LogMessage.LogMessage | ( | EventType | eventType, |
params object?[] | lines | ||
) |
Creates a new LogMessage instance with the specified eventType .
eventType | The Log.EventType of this message. |
lines | The contents of the message, where each element represents one "line". |
References VolumeControl.Log.LogMessage.Lines.
VolumeControl.Log.LogMessage.LogMessage | ( | EventType | eventType | ) |
Creates a new empty LogMessage instance with the specified eventType .
eventType | The Log.EventType of this message. |
References VolumeControl.Log.LogMessage.Lines.
VolumeControl.Log.LogMessage.LogMessage | ( | params object?[] | lines | ) |
Creates a new LogMessage instance with the specified lines and an undefined EventType.
lines | The contents of the message, where each element represents one "line". |
References VolumeControl.Log.LogMessage.Lines.
LogMessage VolumeControl.Log.LogMessage.Add | ( | object? | line | ) |
Appends the specified line to the message.
line | The content of the line. |
References VolumeControl.Log.LogMessage.Lines.
Referenced by VolumeControl.Core.Input.TemplateProviderManager.TryGetDictionaryProvider().
|
static |
Converts a string to a new LogMessage instance.
s | The string to convert. |
LogMessage VolumeControl.Log.LogMessage.SetEventType | ( | EventType | eventType | ) |
Pipeline method that sets the event type of this log message.
eventType | The EventType to use for this log message. |
override string VolumeControl.Log.LogMessage.ToString | ( | ) |
Gets the contents of the log message as a single string.
|
getset |
Gets or sets the event type of this message.
Referenced by VolumeControl.Log.AsyncLogWriter.LogMessage().
|
get |
Gets whether this LogMessage instance has an EventType or not.
|
get |
Gets whether there are any lines in this message.
|
getset |
Gets or sets the lines in this message.
Referenced by VolumeControl.Log.LogMessage.Add(), VolumeControl.Log.LogMessage.LogMessage(), and VolumeControl.Core.Input.TemplateProviderManager.TryGetDictionaryProvider().