3.98.5. LogFormatHook Previous topic Parent topic Child topic Next topic

This specifies an optional Perl hook that runs for each log message when defined. The hook must return the formatted log message. By default no hook is defined and SuccessFormat and FailureFormat are used for formatting. The hook parameters are the message severity level, the reason string, a reference to the current request a tracing identifier string. See goodies/logformat.cfg for a sample configuration file with JSON and CEF (ArcSight Common Event Format) formats.
Consider installing JSON::XS for higher performance JSON encoding.