What's up, folks!
Here is a tip, if you do not like growing log/development.log
or
log/test.log
(this can be huge sometimes), you can reconfigure it
for syslog since override patch [1] was merged. It is possible also to
change the pattern completely to something shorter to save terminal
columns.
I like to redirect everything into syslog, because I use
systemd-journald in memory only mode, which is convenient. I can still
use logs during development or testing if I need to. Saves a lot of
SSD writes, it's faster.
:logging:
:development:
:type: syslog
:pattern: "[%c|%.1l] %m\n"
:test:
:type: syslog
:pattern: "[%c|%.1l] %m\n"
:level: debug
Here is the systemd-journald configuration for the record:
$ grep -v ^# /etc/systemd/journald.conf
[Journal]
Storage=volatile
Seal=no
RuntimeMaxUse=20M
ForwardToSyslog=no
ForwardToKMsg=no
ForwardToConsole=no
[1] https://github.com/theforeman/foreman/pull/3755