3.25.6. AcctLogFileFormatHook Previous topic Parent topic Child topic Next topic

Specifies an optional Perl hook that will is used to alter the format of the accounting log file from the standard radius format when defined. The hook must return the formatted accounting record. A newline will be automatically appended. By default no hook is defined and AcctLogFileFormat or the default format is used. The hook parameter is the reference to the current request.
See goodies/logformat.cfg for a sample configuration file with JSON format.
Consider installing JSON::XS for higher performance JSON encoding.