diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2022-12-07 17:40:23 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2022-12-07 17:40:23 +0000 |
commit | ddc76841398dfd5e18b22943727ad74b880236d3 (patch) | |
tree | e15629a0206ccbf2eebed15f11e705387cd3a1f1 /doc/s6-log.html | |
parent | cac30eda3f3dbb3c690715df5b2867d22b1fc497 (diff) | |
download | s6-ddc76841398dfd5e18b22943727ad74b880236d3.tar.gz s6-ddc76841398dfd5e18b22943727ad74b880236d3.tar.xz s6-ddc76841398dfd5e18b22943727ad74b880236d3.zip |
s6-log: add p directive to add a prefix to every line
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc/s6-log.html')
-rw-r--r-- | doc/s6-log.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/s6-log.html b/doc/s6-log.html index c0e5313..4f2b99f 100644 --- a/doc/s6-log.html +++ b/doc/s6-log.html @@ -228,6 +228,12 @@ bytes of the selected lines will be used in the next status file updates. If a line is shorter than <em>statussize</em> bytes, the status file will be padded with newlines so it is always <em>statussize</em> bytes long. 0 means an unpadded, unlimited status file. By default, <em>statussize</em> is 1001. </li> + <li> <strong>p<em>prefix</em></strong>: sets <em>prefix</em> as a prefix to be +printed on every output line. For instance, a <tt>pfoobar:</tt> directive means +that the next action directives should prepend every line with <tt>foobar:</tt> +(plus a space) before outputting it. Note that a prefix is always printed +<em>after</em> the timestamps, if any. To remove a prefix for the next action +directives, use <tt>p</tt>. </li> <li> <strong>!<em>processor</em></strong>: registers <tt>execlineb -Pc <em>processor</em></tt> as a processor for the next logdirs; <tt>execlineb</tt> must be found in s6-log's PATH. This directive is only |