LogFormat
or the default format is used. The hook
must return a single value. If the value is defined, it is used as the
message to log. An undefined value causes the Log clause to return without
logging. This allows LogFormatHook
to function as a
filter to suppress unwanted log messages.goodies/logformat.cfg
for a sample
configuration file with JSON and CEF (ArcSight Common Event Format)
formats.Cpanel::JSON::XS
or JSON::XS
for higher performance JSON
encoding.