Hi,
LLBLGen writes according to its trace switches on the Trace object. The trace listeners that listen to log information automatically redirects that output to the appropriate outcome. So, the fact that you see the traces in the output window, show that it's working.
Yes, for sure, LLBLGEN is working correctly.
Did you configure properly the Logging information in the startup of your app?
Yes, I use Serilog library extension to be able to configure logs from appsettings : https://nblumhardt.com/2016/10/aspnet-core-file-logger/
loggerFactory.AddFile(configuration.GetSection("Logging"));
"Logging": {
"PathFormat": "C:/Logs/Logs.txt",
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning"
}
What .NET Core version are you using? Does your Logs.txt get populated with log data other than LLBLGen? Which runtime configuration are you running in (debug, release)?
*.net core 3.1
* I can see microsoft in the logs file and logs I write
*debug or release is the same
In fact the only matter is to be able to redirect the LLBLGEN traces to my logger. Because I saw this on the LLBLGEN documentation I thought that I would have to do something similar to redirect logs to my logger.
// add at the start of your program
Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));