www/caddy: Select global log level (#3941)

This commit is contained in:
Monviech
2024-04-26 09:09:53 +02:00
committed by GitHub
parent de94c644f3
commit 8ec93bd7c9
3 changed files with 19 additions and 0 deletions
@@ -1,4 +1,10 @@
<form>
<field>
<id>caddy.general.LogLevel</id>
<label>Log Level</label>
<type>dropdown</type>
<help><![CDATA[Select the minimum global Log Level. "INFO" is the default and shouldn't be changed without a reason, since that level displays the ACME Client messages for automatic certificates. This setting doesn't influence the HTTP Access logs, they're always using INFO, which is their lowest supported Log Level.]]></help>
</field>
<field>
<id>caddy.general.LogCredentials</id>
<label>Log Credentials</label>
@@ -73,6 +73,16 @@
<ValidationMessage>Please enter a valid number of 1 or larger.</ValidationMessage>
<Required>Y</Required>
</LogAccessPlainKeep>
<LogLevel type="OptionField">
<BlankDesc>INFO</BlankDesc>
<OptionValues>
<DEBUG>DEBUG</DEBUG>
<WARN>WARN</WARN>
<ERROR>ERROR</ERROR>
<PANIC>PANIC</PANIC>
<FATAL>FATAL</FATAL>
</OptionValues>
</LogLevel>
<DynDnsSimpleHttp type="UrlField">
<ValidationMessage>Please enter a valid URL, starting with http or https.</ValidationMessage>
</DynDnsSimpleHttp>
@@ -48,6 +48,9 @@
format json {
time_format rfc3339
}
{% if generalSettings.LogLevel %}
level {{ generalSettings.LogLevel }}
{% endif %}
}
{#