2 This file is part of the HandBrake source code.
\r
3 Homepage: <http://handbrake.fr>.
\r
4 It may be used under the terms of the GNU General Public License. */
\r
6 namespace HandBrake.ApplicationServices.Functions
\r
11 using System.Windows.Forms;
\r
13 using HandBrake.ApplicationServices.Model;
\r
16 /// The System Information.
\r
18 public class Logging
\r
21 /// Add the CLI Query to the Log File.
\r
23 /// <param name="encJob">
\r
24 /// The Encode Job Object
\r
27 /// The create cli log header.
\r
29 public static string CreateCliLogHeader(Job encJob)
\r
31 StringBuilder logHeader = new StringBuilder();
\r
33 logHeader.AppendLine(String.Format("# {0}", Init.HandBrakeGuiVersionString));
\r
34 logHeader.AppendLine(String.Format("# Running: {0}", Environment.OSVersion));
\r
35 logHeader.AppendLine(String.Format("# CPU: {0}", SystemInfo.GetCpuCount));
\r
36 logHeader.AppendLine(String.Format("# Ram: {0} MB", SystemInfo.TotalPhysicalMemory));
\r
37 logHeader.AppendLine(String.Format("# Screen: {0}x{1}", SystemInfo.ScreenBounds.Bounds.Width, SystemInfo.ScreenBounds.Bounds.Height));
\r
38 logHeader.AppendLine(String.Format("# Temp Dir: {0}", Path.GetTempPath()));
\r
39 logHeader.AppendLine(String.Format("# Install Dir: {0}", Application.StartupPath));
\r
40 logHeader.AppendLine(String.Format("# Data Dir: {0}\n", Application.UserAppDataPath));
\r
44 logHeader.AppendLine(String.Format("# CLI Query: {0}", encJob.Query));
\r
45 logHeader.AppendLine(String.Format("# User Query: {0}", encJob.CustomQuery));
\r
47 logHeader.AppendLine("-------------------------------------------");
\r
49 return logHeader.ToString();
\r