add logfiles per machine

This commit is contained in:
Jonathan Jenne 2020-09-23 10:21:13 +02:00
parent c415a9f5ec
commit 73328b67fc

View File

@ -5,6 +5,7 @@
Private Sub frmMain_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Try
My.Application.LogConfig = New LogConfig(
Suffix:=Environment.MachineName,
LogPath:=LogConfig.PathType.CustomPath,
CustomLogPath:=Application.StartupPath,
CompanyName:="Digital Data",
@ -52,6 +53,8 @@
Dim oVendors = My.Application.Winline.GetVendors()
listboxVendors.DataSource = oVendors
_Logger.Info("Application started from Machine {0}", Environment.MachineName)
Catch ex As Exception
MsgBox("Fehler beim Initialisieren (Datenbank):" & vbNewLine & ex.Message, MsgBoxStyle.Critical, Text)
_Logger.Error(ex)