plog icon indicating copy to clipboard operation
plog copied to clipboard

SyslogFormatter

Open hmartin-hst opened this issue 1 year ago • 1 comments

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 ?

hmartin-hst avatar Mar 15 '24 15:03 hmartin-hst

The hostname is basically a runtime constant. So you can store it as a static string member in a Syslog formatter.

SergiusTheBest avatar Mar 17 '24 19:03 SergiusTheBest