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.
```yaml
: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
--
Later,
Lukas @lzap Zapletal
--
You received this message because you are subscribed to the Google Groups
"foreman-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.