Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
malavvvakharia opened this issue Jun 13, 2024 · 1 comment

Comments

@malavvvakharia
Copy link

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

@sungam3r
Copy link
Contributor

sungam3r commented Dec 1, 2024

Do you want to change minimum level of some application by another application (service)? I'm not sure anybody understands your question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants