Skip to content

Commit

Permalink
use console sink
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-mh committed May 21, 2024
1 parent e01c8cd commit 1f4a0bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
1 change: 0 additions & 1 deletion Estimmo.Api/Estimmo.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<PackageReference Include="Serilog.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.1" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="6.6.1" />
</ItemGroup>
Expand Down
18 changes: 6 additions & 12 deletions Estimmo.Api/appsettings.Production.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,18 @@
{
"Serilog": {
"Using": [
"Serilog.Sinks.File"
"Serilog.Sinks.Console"
],
"MinimumLevel": {
"Default": "Warning",
"Default": "Information",
"Override": {
"System": "Warning",
"Microsoft": "Information"
"Microsoft": "Warning"
}
},
"WriteTo": [
{
"Name": "File",
"Args": {
"path": "log.txt",
"rollingInterval": "Day"
}
}
],
"WriteTo": {
"Name": "Console"
},
"Enrich": [
"FromLogContext"
]
Expand Down

0 comments on commit 1f4a0bd

Please sign in to comment.