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

Disk logging seems broken in 2.2.5.1538 #2395

Closed
tsimmons opened this issue Jun 8, 2023 · 2 comments
Closed

Disk logging seems broken in 2.2.5.1538 #2395

tsimmons opened this issue Jun 8, 2023 · 2 comments
Milestone

Comments

@tsimmons
Copy link

tsimmons commented Jun 8, 2023

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
@WouterTinus
Copy link
Member

Ah, the single file publishing curse strikes again. I'll have a new build out shortly with a fix.

@WouterTinus
Copy link
Member

Fixed in 2.2.5.1

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

No branches or pull requests

2 participants