If you are talking about two different standalone programs using Serilog, then each program should be using its own logging configuration for Serilog in each program IMHO.
How many Serilog logger instances should be created for different .net app on same machine?
I am new to Serilog. Trying to understand below scenario. If we have 2 different .net application/controls referring to common serilog config file. The file will contain custom prefix tags corresponding to each application. Each app/custom control has created logger using below in its code:
var app1Logger = new LoggerConfiguration()
.ReadFrom.AppSettings("customprefix1", configFilePath)
.CreateLogger();
var app2Logger = new LoggerConfiguration()
.ReadFrom.AppSettings("customprefix2", configFilePath)
.CreateLogger();
For such scenario, should we be creating different loggers each?