C# Class HandBrake.ApplicationServices.Utilities.GeneralUtilities

A Set of Static Utilites
显示文件 Open project: golgol7777/HandBrakeWinSource

Public Methods

Method Description
ClearLogFiles ( int daysToKeep ) : void

Clear all the log files older than 30 Days

CreateCliLogHeader ( ) : StringBuilder

Add the CLI Query to the Log File.

GetCliProcess ( ) : System.Diagnostics.Process[]

Get the Process ID of HandBrakeCLI for the current instance.

GetDrives ( ) : List

Get a list of available DVD drives which are ready and contain DVD content.

LogLine ( string message ) : string

Return the standard log format line of text for a given log message

Method Details

ClearLogFiles() public static method

Clear all the log files older than 30 Days
public static ClearLogFiles ( int daysToKeep ) : void
daysToKeep int /// The Number of Days to Keep ///
return void

CreateCliLogHeader() public static method

Add the CLI Query to the Log File.
public static CreateCliLogHeader ( ) : StringBuilder
return StringBuilder

GetCliProcess() public static method

Get the Process ID of HandBrakeCLI for the current instance.
public static GetCliProcess ( ) : System.Diagnostics.Process[]
return System.Diagnostics.Process[]

GetDrives() public static method

Get a list of available DVD drives which are ready and contain DVD content.
public static GetDrives ( ) : List
return List

LogLine() public static method

Return the standard log format line of text for a given log message
public static LogLine ( string message ) : string
message string The Log Message
return string