diff --git a/DragaliaAPI/DragaliaAPI/appsettings.json b/DragaliaAPI/DragaliaAPI/appsettings.json index baf1ca41f..305a74106 100644 --- a/DragaliaAPI/DragaliaAPI/appsettings.json +++ b/DragaliaAPI/DragaliaAPI/appsettings.json @@ -4,13 +4,13 @@ { "Name": "ByExcluding", "Args": { - "expression": "EndsWith(RequestPath, '/health') and Coalesce(StatusCode, 200)=200" + "expression": "EndsWith(RequestPath, '/health') and @l in ['verbose', 'debug', 'information'] ci" } }, { "Name": "ByExcluding", "Args": { - "expression": "EndsWith(RequestPath, '/ping') and Coalesce(StatusCode, 204)=204" + "expression": "EndsWith(RequestPath, '/ping') and @l in ['verbose', 'debug', 'information'] ci" } } ], @@ -30,7 +30,7 @@ "Args": { "formatter": { "type": "Serilog.Templates.ExpressionTemplate, Serilog.Expressions", - "template": "[{@t:yyyy-MM-dd HH:mm:ss} {@l:u3} {Substring(SourceContext, LastIndexOf(SourceContext, '.') + 1)}{#each i in [RequestId, AccountId, ViewerId]}{Concat(' ', i)}{#end}] {@m}\n{@x}" + "template": "[{@t:yyyy-MM-dd HH:mm:ss} {@l} {RequestPath} {Substring(SourceContext, LastIndexOf(SourceContext, '.') + 1)}{#each i in [RequestId, AccountId, ViewerId]}{Concat(' ', i)}{#end}] {@m}\n{@x}" }, "theme": "Serilog.Sinks.SystemConsole.Themes.AnsiConsoleTheme::Code, Serilog.Sinks.Console" } diff --git a/PhotonStateManager/DragaliaAPI.Photon.StateManager/Program.cs b/PhotonStateManager/DragaliaAPI.Photon.StateManager/Program.cs index fa992c40b..9b70cd85e 100644 --- a/PhotonStateManager/DragaliaAPI.Photon.StateManager/Program.cs +++ b/PhotonStateManager/DragaliaAPI.Photon.StateManager/Program.cs @@ -28,10 +28,10 @@ config.Enrich.FromLogContext(); config.Filter.ByExcluding( - "EndsWith(RequestPath, '/health') and Coalesce(StatusCode, 200) = 200" + "EndsWith(RequestPath, '/health') and @l in ['verbose', 'debug', 'information'] ci" ); config.Filter.ByExcluding( - "EndsWith(RequestPath, '/ping') and Coalesce(StatusCode, 200) = 200" + "EndsWith(RequestPath, '/ping') and @l in ['verbose', 'debug', 'information'] ci" ); } );