Logging: Fix filename with module

This commit is contained in:
Jonathan Jenne 2021-06-28 16:40:50 +02:00
parent 36b86ed9d1
commit 20375e3134

View File

@ -346,7 +346,7 @@ Public Class LogConfig
Public Function GetLogger(ClassName As String, ModuleName As String) As Logger
Dim oLogger = LogFactory.GetLogger(Of Logger)(ClassName)
If ModuleName IsNot Nothing Then
If ModuleName IsNot Nothing AndAlso ModuleName.Length > 0 Then
Return oLogger.WithProperty("ModuleName", $"-{ModuleName}")
End If