Skip to content

Commit db82f02

Browse files
committed
Clarify some logging aspects
1 parent 78ef836 commit db82f02

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

docs/modules/ROOT/pages/config/logging.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ to include logging messages of level `*0*` and `*1*` only.
286286
xref:daemons/charon-systemd.adoc#_logging[systemd journal] by default.
287287

288288
* The xref:plugins/vici.adoc[`*VICI*`] plugin provides a `*log*` event that
289-
delivers log messages (xref:swanctl/swanctlLog.adoc[`*swanctl --log*`]
290-
subscribes to it.
289+
delivers log messages on level 0 and 1 (xref:swanctl/swanctlLog.adoc[`*swanctl --log*`]
290+
subscribes to it).
291291

292292
* The xref:plugins/sql.adoc[`*sql*`] plugin supports logging to a database if
293293
enabled via `*charon.plugins.sql.loglevel*`.

docs/modules/ROOT/pages/support/helpRequests.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,13 @@ IMPORTANT: On Windows, use a different path from */var/log/...* or */tmp/*.
173173
directory of the process (if it is allowed to do so).
174174

175175
Use the following snippet in xref:config/strongswanConf.adoc[`*strongswan.conf*`]
176-
for version < 5.7.0
176+
for version >= 5.7.0
177177
----
178178
filelog {
179-
/var/log/charon_debug.log {
179+
# any arbitrary name without dots for the section instead of the one given here
180+
charon-debug-log {
181+
# this setting is required with 5.7.0 and newer if the path contains dots
182+
path = /var/log/charon_debug.log
180183
time_format = %a, %Y-%m-%d, %H:%M:%S
181184
default = 2
182185
net = 1
@@ -192,13 +195,10 @@ for version < 5.7.0
192195
----
193196

194197
Use the following snippet in xref:config/strongswanConf.adoc[`*strongswan.conf*`]
195-
for version >= 5.7.0
198+
for version < 5.7.0
196199
----
197200
filelog {
198-
# any arbitrary name without dots for the section instead of the one given here
199-
charon-debug-log {
200-
# this setting is required with 5.7.0 and newer if the path contains dots
201-
path = /var/log/charon_debug.log
201+
/var/log/charon_debug.log {
202202
time_format = %a, %Y-%m-%d, %H:%M:%S
203203
default = 2
204204
net = 1

docs/modules/ROOT/pages/swanctl/swanctlLog.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ xref:daemons/charon.adoc[`*charon*`] daemon via the `*vici*` interface.
1616

1717
NOTE: This command only receives log messages on *levels 0 and 1* from the
1818
daemon. The `*--debug/-v*` option only affects the logging done by `*swanctl*`
19-
itself.
19+
itself. Consider using other xref:config/logging.adoc[`*logging backends*`].
2020

2121
== Options
2222

0 commit comments

Comments
 (0)