3.111.2. OutputFormat Previous topic Parent topic Child topic Next topic

This optional string parameter defines the format for the log messages. Format specifiers, such as %{GlobalVar:name}, are evaluated when the configuration is loaded. Currently supported values are text and json. Default value is text.
Tip
For the best JSON encoding performance, check your Perl installation includes Cpanel::JSON::XS or JSON::XS.
For extensive customisation of JSON and other formats, see LogFormatHook and Radius::LogFormat module.
# We have switched from LogFormatHook to OutputFormat
#LogFormatHook sub { Radius::LogFormat::format_acctlog_json(@_); }
OutputFormat json