Currently using dotnetcore sdk 3.1.200 and having some very hacky test aspnetcore app.
My goal is generally testing how things work, so I created a host that can be used as a standalone app, as systemd service, and as windows service.
I ran UseSystemd(), UseWindowsService() and UseConsoleLifetime() in this order. But it seems that even though my app runs as a normal console app, it nevertheless changes the console logging format.
Additionally if UseConsoleLifetime is first, then UseSystemd seems to override it because pressing ctrl+c does not do an orderly shutdown, I do not see log messages about host stopping. Does the systemd detection logic in UseSystemd malfunction?
Currently using dotnetcore sdk 3.1.200 and having some very hacky test aspnetcore app.
My goal is generally testing how things work, so I created a host that can be used as a standalone app, as systemd service, and as windows service.
I ran UseSystemd(), UseWindowsService() and UseConsoleLifetime() in this order. But it seems that even though my app runs as a normal console app, it nevertheless changes the console logging format.
Additionally if UseConsoleLifetime is first, then UseSystemd seems to override it because pressing ctrl+c does not do an orderly shutdown, I do not see log messages about host stopping. Does the systemd detection logic in UseSystemd malfunction?