mirror of
https://github.com/openglow-org/forgefirm.git
synced 2026-09-28 09:11:11 -07:00
BRINGUP: clarify the pre-rename estop references in dated records
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
# /etc/rsyslog.conf - ForgeFIRM
|
||||
#
|
||||
# rsyslog is the only log writer on the machine. Every ForgeFIRM process
|
||||
# (forgectrl, grblHAL, gfcloud, gfhome), the kernel, and everything else
|
||||
# route to their own directory under /data/log/forgefirm. The per-logger
|
||||
# disk and remote levels come from /data/forgefirm.conf and are rendered
|
||||
# into the included rules file at every boot by `forgectrl
|
||||
# --render-syslog` (see the forgefirm-logging init script), so a change
|
||||
# made in the control panel applies at the next reboot.
|
||||
|
||||
# Inputs: the local syslog socket and the kernel ring buffer. The
|
||||
# per-process rate limit bounds a runaway logger to a few hundred lines
|
||||
# per second so it cannot starve the machine; the emitters themselves
|
||||
# never block on this socket (they drop instead).
|
||||
module(load="imuxsock" SysSock.Use="on"
|
||||
SysSock.RateLimit.Interval="10" SysSock.RateLimit.Burst="5000")
|
||||
module(load="imklog")
|
||||
|
||||
global(workDirectory="/var/volatile/tmp"
|
||||
maxMessageSize="16k")
|
||||
|
||||
# One line format for every file: RFC 3339 timestamp with sub-second
|
||||
# precision, program[pid], SEVERITY, message.
|
||||
template(name="ff_line" type="list") {
|
||||
property(name="timegenerated" dateFormat="rfc3339")
|
||||
constant(value=" ")
|
||||
property(name="programname")
|
||||
constant(value="[")
|
||||
property(name="procid")
|
||||
constant(value="] ")
|
||||
property(name="syslogseverity-text" caseConversion="upper")
|
||||
property(name="msg" spifno1stsp="on")
|
||||
property(name="msg" droplastlf="on")
|
||||
constant(value="\n")
|
||||
}
|
||||
|
||||
# The rendered per-logger rules (levels, remote target). Every message
|
||||
# is consumed there (each block ends in stop).
|
||||
include(file="/data/forgefirm/rsyslog-forgefirm.conf" mode="optional")
|
||||
|
||||
# Reached only if the rules file is missing (a boot where the render
|
||||
# failed): keep everything, on disk, at info and above.
|
||||
if $syslogseverity <= 6 then action(type="omfile"
|
||||
file="/data/log/forgefirm/system/system.log" template="ff_line"
|
||||
asyncWriting="on" flushOnTXEnd="off" flushInterval="1"
|
||||
fileCreateMode="0640" dirCreateMode="0755" createDirs="on")
|
||||
Reference in New Issue
Block a user