Make caller right aligned

This commit is contained in:
glax 2023-05-21 01:57:18 +02:00
parent a557f8cab5
commit 06a8e4e895

View File

@ -52,7 +52,7 @@ public abstract class LoggerBase : TextWriter
public override string ToString()
{
string dateTimeString = $"{logTime.ToShortDateString()} {logTime.ToLongTimeString()}";
return $"[{dateTimeString}] {caller,-30} | {value}";
return $"[{dateTimeString}] {caller,30} | {value}";
}
}
}