Skip to content

Commit

Permalink
Add Serilog Console Sink
Browse files Browse the repository at this point in the history
  • Loading branch information
ttu committed Oct 12, 2018
1 parent ed13490 commit bf299ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions FakeServer/FakeServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<PackageReference Include="Serilog.AspNetCore" Version="2.1.1" />
<PackageReference Include="Serilog.Extensions.Logging" Version="2.0.2" />
<PackageReference Include="Serilog.Settings.Configuration" Version="2.6.1" />
<PackageReference Include="Serilog.Sinks.Console" Version="3.1.1" />
<PackageReference Include="Serilog.Sinks.RollingFile" Version="3.3.0" />
<PackageReference Include="System.Linq.Dynamic.Core" Version="1.0.8.17" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="3.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion FakeServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static void Main(string[] args)

try
{
Log.Information("Starting Clark Account API web host.");
Log.Information("Starting Fake JSON Server");
BuildWebHost(args).Run();
}
catch (Exception ex)
Expand Down
3 changes: 3 additions & 0 deletions FakeServer/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"Default": "Warning"
}
},
"Serilog": {
"WriteTo": [ { "Name": "File" } ]
},
"Common": {
"EagerDataReload": true
},
Expand Down

0 comments on commit bf299ce

Please sign in to comment.