plog
plog copied to clipboard
SyslogFormatter
I'm trying to create a new formatter for Syslog message : timestamp hostname function[line]: message
How can I introduce the variable hostname, should I extend Record or is there other possibilities ?
The hostname is basically a runtime constant. So you can store it as a static string member in a Syslog formatter.