-
-
Notifications
You must be signed in to change notification settings - Fork 843
Closed
Labels
Milestone
Description
Describe the bug
Without changing settings, upgraded from 2.2.4.1500 to 2.2.5.1538, when running the scheduled task to check renewal nothing gets logged to C:\ProgramData\win-acme\acme-v02.api.letsencrypt.org\Log\log-yyyymmdd.txt (whereas using the previous version does log to this file.)
When running from the command line, the following is logged to the console:
wacs.exe --verbose --renew --baseuri "https://acme-v02.api.letsencrypt.org/"
[WARN] Error creating event logger: No event:Using configuration section is defined and no Serilog assemblies were found.
This is most likely because the application is published as single-file.
Either add a event:Using section or explicitly specify assemblies that contains sinks and other types through the reader options. For example:
var options = new ConfigurationReaderOptions(typeof(ConsoleLoggerConfigurationExtensions).Assembly, typeof(SerilogExpression).Assembly);
new LoggerConfiguration().ReadFrom.Configuration(configuration, options);
[DBUG] Logging at level Verbose
[VERB] Loaded validation plugin Cloudflare from D:\letsencrypt-2.1\PKISharp.WACS.Plugins.ValidationPlugins.Cloudflare.dll
[VERB] W3SVC detected and running
[VERB] FTPSVC detected and running
[VERB] Looking for settings.json in D:\letsencrypt-2.1\
[DBUG] Use existing configuration folder C:\ProgramData\win-acme
[DBUG] Use existing configuration folder C:\ProgramData\win-acme\acme-v02.api.letsencrypt.org
[DBUG] Use existing log folder C:\ProgramData\win-acme\acme-v02.api.letsencrypt.org\Log
[DBUG] Use existing cache folder C:\ProgramData\win-acme\acme-v02.api.letsencrypt.org\Certificates
[WARN] Error creating disk logger: No disk:Using configuration section is defined and no Serilog assemblies were found.
This is most likely because the application is published as single-file.
Either add a disk:Using section or explicitly specify assemblies that contains sinks and other types through the reader options. For example:
var options = new ConfigurationReaderOptions(typeof(ConsoleLoggerConfigurationExtensions).Assembly, typeof(SerilogExpression).Assembly);
new LoggerConfiguration().ReadFrom.Configuration(configuration, options);
Expected behavior
Expect it to log as previous versions.
Platform:
- OS: Windows 2016, English
- Version: 2.2.5.1538, 64-bit, pluggable