Closed troncomputers closed 2 years ago
Hi! Try fully-qualifying the log file paths like "service.log"
- they'll otherwise end up wherever the process's current working directory is, which won't always be where an obvious location. HTH!
All three apps are in the same place. Logs from WinForms project works correctly. Service .exe and Library .dll files are in the same location but no logs if I specify just a file name instead of absolute path. Does Serilog automatically handle the path if you don't specify it correctly?
Hi! We're triaging issues in this tracker and the current one appears to be stale. If your issue relates to a usage question, asking on Stack Overflow and posting a link here will get the most eyes on it (only a small number of maintainers actively track this repository). If your issue relates to a possible bug that still needs attention, please feel free to comment/request reopening. Thanks!
Hi. I have three projects Optimo (WinForms), OptimoService (Windows Service) and OptimoLib (Class Library). All in .NET Framework 4.8. In
MainForm.cs
I have logger for user interactionsWith this form user is able to start a Windows Service (OptimoService) which has its own logger created
Inside OptimoLib I have another logger that is handling executed jobs using FluentScheduler.
USAGE
Non of those additional are created (Service and Lib). Only WinForms creates log file with
OptimoService OnStart()
TIMER - ORDER JOB Execute()
What am I doing wrong? Is that a bug?