mirror of
https://github.com/win-acme/win-acme.git
synced 2026-04-27 03:55:56 +03:00
Page:
Advanced logging
Pages
A specified logon session does not exist
Advanced logging
Advanced usage
Apache 2.4 basic usage
Application Logging
Application Settings
Azure DNS validation
Basic usage
CSR Plugins
Command Line Arguments
Command line
Create a SAN certificate
Custom plugins
DNS validation plugins
Development
Enhancement voting
Example Scripts
HTTP Validation Plugins
HTTPS Binding With Specific IP
Home
How To Run
How to Compile From Source Code
IIS 7.5 and Lower
Install script
Installation plugins
Issues and workarounds
Load balancing
Microsoft Exchange
Microsoft Remote Desktop Server
Migration to v1.9.5
Migration to v1.9.9
Migration to v2.0.0
Missing Certificate Chain
Plugins
Renewal Management
Store plugins
Target plugins
Task Scheduler
Uninstall instructions
Upgrades
Validation issues
Validation plugins
web_config.xml
No results
2
Advanced logging
David Peden edited this page 2019-03-06 09:53:35 -06:00
Table of Contents
The program users Serilog for logging which is a powerful extensible library. By default the program logs to the console window and selected events are persisted into the Windows Event Viewer, but you may want to extend this based on your infrastructure.
Rolling log files example
- Download
Serilog.Sinks.File.dllandSerilog.Sinks.RollingFile.dllfrom NuGet. These DLLs can be found here and here, respectively. - Add the following lines to
wacs.exe.config
<add key="serilog:using:RollingFile" value="Serilog.Sinks.RollingFile" />
<add key="serilog:write-to:RollingFile.pathFormat" value="wacs-{Date}.log" />
<add key="serilog:write-to:RollingFile.retainedFileCountLimit" value="30" />
Seq example
- Download
Serilog.Sinks.PeriodicBatching.dllandSerilog.Sinks.Seq.dllfrom NuGet. These DLLs can be found here and here, respectively. - Add the following lines to
wacs.exe.config
<add key="serilog:using:Seq" value="Serilog.Sinks.Seq" />
<add key="serilog:write-to:Seq.serverUrl" value="http://localhost:5341" />
Changing the Log Level
You can change the log level by adding the following setting:
<add key="serilog:minimum-level" value="Verbose" />
Additional information on leg levels can be found here.
Other sinks
There are many types of output channels called sinks for all kinds of different databases, file formats and services.
Please refer to https://pkisharp.github.io/win-acme/ for up-to-date documentation.