serilog/serilog-settings-configuration

It is possible to change the serilog minimum log level by Linux custom service?

malavvvakharia opened this issue · 0 comments

Hello,

I am facing the issue of change the minimum level of serilog so right now I am trying to set the level by Environment=Serilog__MinimumLevel=Information but it is not working.

The service file looks like below:

[Unit]
Description=ABC

[Service]
WorkingDirectory=/var/www/html/abc
ExecStart=/var/www/html/backend/ABC
Restart=always
RestartSec=10
KillSignal=SIGINT
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
Environment=Serilog__MinimumLevel=Information

[Install]
WantedBy=multi-user.target