Updated (added more header options)
This commit is contained in:
@@ -37,7 +37,17 @@ public class Logger
|
||||
UseLocalTime = UseLocalTime,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
LoggerSettings.CustomHeaderFormatter = ctx =>
|
||||
{
|
||||
if (ctx.LogType == ELogType.Error)
|
||||
{
|
||||
return $"{ctx.Timestamp:HH:mm:ss} [{ctx.LogType}]";
|
||||
}
|
||||
|
||||
return $"{ctx.Timestamp:HH:mm:ss} [{ctx.LogType}]";
|
||||
};
|
||||
|
||||
_logManager = new LogManager(LoggerSettings);
|
||||
_logManager.Settings.TypesToLog.Clear();
|
||||
_logManager.Settings.LogInfo();
|
||||
|
||||
Reference in New Issue
Block a user