mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Changed header, removed footer, and added command line to the log file.
This commit is contained in:
@@ -249,6 +249,8 @@ Namespace App
|
||||
Public Shared Sub CreateLogger()
|
||||
log4net.Config.XmlConfigurator.Configure(New FileInfo("mRemoteNG.exe.config"))
|
||||
log = log4net.LogManager.GetLogger("mRemoteNG.Log")
|
||||
log.InfoFormat("{0} started.", My.Application.Info.ProductName)
|
||||
log.InfoFormat("Command Line: {0}", Environment.GetCommandLineArgs)
|
||||
Try
|
||||
Dim servicePack As Integer
|
||||
For Each managementObject As ManagementObject In New ManagementObjectSearcher("SELECT * FROM Win32_OperatingSystem").Get()
|
||||
|
||||
@@ -27,8 +27,6 @@
|
||||
<!-- An alternate output encoding can be specified -->
|
||||
<!-- <encoding value="unicodeFFFE" /> -->
|
||||
<layout type="log4net.Layout.PatternLayout">
|
||||
<header value="[mRemoteNG Start]
" />
|
||||
<footer value="[mRemoteNG Exit]
" />
|
||||
<conversionPattern value="%date [%thread] %-5level- %message%newline" />
|
||||
</layout>
|
||||
<!-- Alternate layout using XML
|
||||
|
||||
Reference in New Issue
Block a user