fix: include SourceContext in console log output
This commit is contained in:
@@ -8,7 +8,9 @@ using VoxelEngine.Core;
|
||||
Log.Logger = new LoggerConfiguration()
|
||||
.MinimumLevel.Debug()
|
||||
.Enrich.FromLogContext()
|
||||
.WriteTo.Console(restrictedToMinimumLevel: LogEventLevel.Information)
|
||||
.WriteTo.Console(
|
||||
restrictedToMinimumLevel: LogEventLevel.Information,
|
||||
outputTemplate: "[{Timestamp:HH:mm:ss.fff} {Level:u3}] [{SourceContext}] {Message:lj}{NewLine}{Exception}")
|
||||
.WriteTo.File(
|
||||
path: "logs/voxelengine-.log",
|
||||
rollingInterval: RollingInterval.Day,
|
||||
|
||||
Reference in New Issue
Block a user