|
|
@@ -213,6 +213,7 @@ public class BaseLogger {
|
|
|
/// </summary>
|
|
|
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)
|