diff --git a/Shared/General/Logger.cs b/Shared/General/Logger.cs index d187e9e..f06d946 100644 --- a/Shared/General/Logger.cs +++ b/Shared/General/Logger.cs @@ -213,6 +213,7 @@ public class BaseLogger { /// public virtual string Format(string text, LogLevel level, string filePath, Exception? ex) { string prefix = GetLogPrefix(level, filePath); + if (string.IsNullOrEmpty(text)) return prefix; return text .ReplaceLineEndings("\n", mergeMultiple: true).Split(['\n'], StringSplitOptions.RemoveEmptyEntries) .Select(t => prefix + t)