From 20375e313490d9ac5570d3bd41a371c29cb7d556 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Mon, 28 Jun 2021 16:40:50 +0200 Subject: [PATCH] Logging: Fix filename with module --- Modules.Logging/LogConfig.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules.Logging/LogConfig.vb b/Modules.Logging/LogConfig.vb index 8e159d90..ac14280f 100644 --- a/Modules.Logging/LogConfig.vb +++ b/Modules.Logging/LogConfig.vb @@ -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