Yes, it is working on .net framework 4.8 and it really took me a hard time.
Here are what I did and I am able to see the log message with these implementations.
you will need to install Serilog.Sinks.Seq library from NuGet manager, and you will have the following code added to your packages.config.
<package id="Serilog" version="2.12.0" targetFramework="net48" />
<package id="Serilog.Formatting.Compact" version="1.1.0" targetFramework="net48" />
<package id="Serilog.Sinks.Console" version="4.1.0" targetFramework="net48" />
<package id="Serilog.Sinks.PeriodicBatching" version="3.1.0" targetFramework="net48" />
<package id="Serilog.Sinks.PeriodicBatching" version="3.1.0" targetFramework="net48" />
<package id="Serilog.Sinks.Seq" version="5.2.2" targetFramework="net48" />
in the web.config
<?xml version="1.0" encoding="utf-8"?>
...
<appSettings>
...
<add key="SeqFolder" value="the url or file path that you want to store the logger" />
...
in the Global.asax.cs
var log = new LoggerConfiguration().WriteTo.Seq(System.Configuration.ConfigurationManager.AppSettings["SeqFolder")
.MinimumLevel.Information().CreateLogger();
Log.Logger = log;
log.Information("This will show as soon as your application is running!");
this is about HOW you use it in application, in anywhere in your code, eg controller, you just need to use the following code to start logging anything you want to.
Log.Logger.Information("You are welcome! :) ");