Class LogExpertLoader
Handles loading and managing LogExpert log files.
Inherited Members
Namespace: CoverageKiller2.Logging
Assembly: CoverageKiller2.dll
Syntax
public class LogExpertLoader
Remarks
Version: CK2.00.00.0000
Constructors
LogExpertLoader()
Declaration
public LogExpertLoader()
Properties
LogFileName
Gets the name of the log file currently in use.
Declaration
public static string LogFileName { get; }
Property Value
Type | Description |
---|---|
string |
LogOpen
Gets a value indicating whether the log viewer is currently open.
Declaration
public static bool LogOpen { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
Cleanup()
Prompts the user to close LogExpert, and shuts it down if confirmed.
Declaration
public static void Cleanup()
GetLogFile()
Creates a temporary log file and records the location in settings for reuse.
Declaration
public static string GetLogFile()
Returns
Type | Description |
---|---|
string | The full file path of the created log file. |
StartLogExpert(string, bool)
Starts LogExpert and opens the given log file, if it isn't already running.
Declaration
public static void StartLogExpert(string filePath, bool restartIfOpen)
Parameters
Type | Name | Description |
---|---|---|
string | filePath | The file to open in LogExpert. |
bool | restartIfOpen |
StopLogExpert()
Attempts to close any running LogExpert process gracefully, falling back to force-kill if necessary.
Declaration
public static void StopLogExpert()