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