comparison man/irccd.conf.5 @ 1054:c1c9a2cd63cb

irccd: add level keyword to log template
author David Demelier <markand@malikania.fr>
date Sun, 20 Jun 2021 13:01:25 +0200
parents d7764d6cdab8
children c46217eaac45
comparison
equal deleted inserted replaced
1053:8d6651c3e36c 1054:c1c9a2cd63cb
61 and 61 and
62 .Ar server-tz2 62 .Ar server-tz2
63 are valid. 63 are valid.
64 .\" Blocks 64 .\" Blocks
65 .Ss Blocks 65 .Ss Blocks
66 For configuration sections that are more complex, block using braces are 66 For configuration sections that are more complex, blocks using braces are
67 required and each directive between the enclosing block require a trailing 67 required and each directive between the enclosing block require a trailing
68 semicolon. 68 semicolon.
69 .Pp 69 .Pp
70 Example: 70 Example:
71 .Bd -literal -offset indent 71 .Bd -literal -offset indent
85 .\" CONFIGURATION SECTIONS 85 .\" CONFIGURATION SECTIONS
86 .Sh CONFIGURATION SECTIONS 86 .Sh CONFIGURATION SECTIONS
87 The following sections describe what is allowed in the configuration file. 87 The following sections describe what is allowed in the configuration file.
88 .\" logs 88 .\" logs
89 .Ss logs 89 .Ss logs
90 This section can let you configure how irccd should log the messages. 90 This section let you configure how irccd should log the messages.
91 .Bl -tag 91 .Bl -tag
92 .It Ar logs [verbose|quiet] [template string] to console 92 .It Ar logs [verbose|quiet] [template string] to console
93 Use the standard output and error to log content. This the default. 93 Use the standard output and error to log content. This the default.
94 .It Ar logs [verbose|quiet] [template string] to syslog 94 .It Ar logs [verbose|quiet] [template string] to syslog
95 Use the 95 Use the
109 .Pp 109 .Pp
110 The option 110 The option
111 .Ar template 111 .Ar template
112 can be used to format the output log entries using 112 can be used to format the output log entries using
113 .Ar string 113 .Ar string
114 as template. See 114 as template. This template enable shell attributes, environment variable, date
115 and has the following keywords:
116 .Bl -tag -width unknown
117 .It Va message
118 The message line.
119 .It Va level
120 The level of message (debug, info or warning).
121 .El
122 .Pp
123 See
115 .Xr irccd-templates 7 124 .Xr irccd-templates 7
116 for more details. 125 for more details.
117 .\" transport 126 .\" transport
118 .Ss transport 127 .Ss transport
119 Enable transport to interract with the 128 Enable transport to interract with the
291 Full example of configuration file 300 Full example of configuration file
292 .Bd -literal 301 .Bd -literal
293 # Logs to syslog instead of console (which is the default). 302 # Logs to syslog instead of console (which is the default).
294 logs verbose to syslog 303 logs verbose to syslog
295 304
305 # Logs using a specific format string (console is recommended for colors).
306 logs verbose template "%H:%M @{orange}#{level}@{} #{message}"
307
296 # Enable transport with default permissions. 308 # Enable transport with default permissions.
297 transport to "/tmp/irccd.sock" 309 transport to "/tmp/irccd.sock"
298 310
299 # 311 #
300 # Create a server "example" that connect to example.org using "fr" as nickname, 312 # Create a server "example" that connect to example.org using "fr" as nickname,