Remove ClassLogger and replace with Logging Module

This commit is contained in:
Jonathan Jenne
2021-09-23 12:10:47 +02:00
parent 27294faa13
commit e81f2f0878
5 changed files with 4 additions and 224 deletions

View File

@@ -20,12 +20,9 @@ Public Class ClassEmail
My.Computer.Clock.LocalTime.ToLongTimeString & "</font>")
If test = False Then
If Log = True Then
' create and add the attachment(s) */
If ClassLogger.logDateiname.Contains("\\") Then
ClassLogger.logDateiname = ClassLogger.logDateiname.Replace("\\", "\")
End If
If IO.File.Exists(ClassLogger.logDateiname) Then
Dim Attachment As Attachment = New Attachment(ClassLogger.logDateiname)
' create and add the attachment(s) */
If IO.File.Exists(LOGCONFIG.LogFile) Then
Dim Attachment As Attachment = New Attachment(LOGCONFIG.LogFile)
message.Attachments.Add(Attachment)
End If
End If