1
0
Fork 0
mirror of https://github.com/win-acme/win-acme.git synced 2026-04-27 03:55:56 +03:00
8 Application Logging
WouterTinus edited this page 2017-09-10 14:20:49 +02:00

Overview

The application uses Serilog for logging.

Log levels

Error - Logs any errors thrown or encountered.

Warning - Logs any errors that don't cause fatal errors. For example an override parameter isn't set so it uses the default.

Information - Anywhere the application prints to the console (besides asking for input)

Debug - Logs additional information that can be useful for troubleshooting issues.

Verbose - Full logging requested for submitting bug reports.

Changing the logging level

letsencrypt-win-simple outputs to two locations by default (Serilog calls them sinks):

  • Console (defaults to Information level and higher)
  • Event log (Warning level and higher plus some key Information messages to help monitor the scheduled task)

You can change the Console log level by modifying the letsencrypt.exe.config file. Level values (from above) are: Error, Warning, Information, Debug

<appSettings>
	<add key="serilog:minimum-level" value="Debug" />
</appSettings>

More details on configuring sinks available at https://github.com/serilog/serilog/wiki/AppSettings#adding-a-sink