diff --git a/src/Nocr.Users.Host/appsettings.k8s.json b/src/Nocr.Users.Host/appsettings.k8s.json index dcecd84..b0885eb 100644 --- a/src/Nocr.Users.Host/appsettings.k8s.json +++ b/src/Nocr.Users.Host/appsettings.k8s.json @@ -1,5 +1,28 @@ { + "Serilog": { + "MinimumLevel": { + "Default": "Information" + }, + "WriteTo": [ + { + "Name": "Console", + "Args": { + "outputTemplate": "[{Level:u3}] {Timestamp:MM-dd HH:mm:ss} {TraceId} {SourceContext:l} {Message:lj}{NewLine}{Exception}" + } + }, + { + "Name": "File", + "Args": { + "path": "/var/log/nocr/users/nocr-users-.log", + "outputTemplate": "[{Level:u3}] {Timestamp:dd-MM-yyyy HH:mm:ss} {TraceId} {SourceContext:l} {Message:lj}{NewLine}{Exception}", + "fileSizeLimitBytes": 104857600, + "rollingInterval": "Day", + "rollOnFileSizeLimit": true + } + } + ] + }, "ConnectionStrings": { "UsersContext": "" } -} +} \ No newline at end of file