Volume Control
Application-specific hotkeys for Windows
|
Static file logger class. More...
Static Public Member Functions | |
static void | Initialize (string path, bool enable, EventType logFilter, bool deleteExisting=true) |
Initializes the log. The settings object must be created before calling this method. This method can only be called once. More... | |
static void | ChangeLogPath (string newPath) |
Sets the log path to a new location. More... | |
static bool | FilterEventType (EventType eventType) |
static void | LogMessage (LogMessage logMessage) |
static bool | Trace (params object?[] lines) |
static bool | Trace (LogMessage logMessage) |
static bool | Debug (params object?[] lines) |
static bool | Debug (LogMessage logMessage) |
static bool | Info (params object?[] lines) |
static bool | Info (LogMessage logMessage) |
static bool | Warning (params object?[] lines) |
static bool | Warning (LogMessage logMessage) |
static bool | Error (params object?[] lines) |
static bool | Error (LogMessage logMessage) |
static bool | Fatal (params object?[] lines) |
static bool | Fatal (LogMessage logMessage) |
static bool | Critical (params object?[] lines) |
static bool | Critical (LogMessage logMessage) |
static bool | Blank (params object?[] lines) |
static bool | Blank (LogMessage logMessage) |
Properties | |
static AsyncLogWriter | Log [get] |
Gets the AsyncLogWriter instance. More... | |
static bool | IsAsyncEnabled [get, set] |
static bool | IsInitialized [get] |
Gets whether this log has been initialized yet or not. More... | |
Static file logger class.
The Initialize method must be called before accessing any properties.
|
static |
Sets the log path to a new location.
newPath | The filepath to change the log path to. |
References VolumeControl.Log.FLog.Log.
|
static |
Initializes the log. The settings object must be created before calling this method. This method can only be called once.
InvalidOperationException | The method has already been called before. |
NotInitializedException | The default config object hasn't been initialized yet. |
References VolumeControl.Log.FLog.Log, and VolumeControl.Log.AsyncLogWriter.ResetEndpoint().
|
staticget |
Gets whether this log has been initialized yet or not.
This does not throw exceptions.
Referenced by VolumeControl.Core.Config.Load().
|
staticget |
Gets the AsyncLogWriter instance.
To preserve thread-safety, the FileEndpoint cannot be accessed through the log writer. It can be configured via the relevant setting in the Config.
Referenced by VolumeControl.Log.FLog.ChangeLogPath(), VolumeControl.CoreAudio.AudioDevice.Dispose(), VolumeControl.CoreAudio.AudioSession.Dispose(), VolumeControl.SDK.Internal.Initializer.Initialize(), VolumeControl.Log.FLog.Initialize(), VolumeControl.Core.Input.Actions.HotkeyActionInstance.Invoke(), and VolumeControl.Core.Input.HotkeyActionAddonLoader.LoadActions().