mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
www/caddy: Select global log level (#3941)
This commit is contained in:
@@ -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 %}
|
||||
}
|
||||
|
||||
{#
|
||||
|
||||
Reference in New Issue
Block a user