3.5.13. LogFile Previous topic Parent topic Child topic Next topic

This defines the name of the log file. All logging messages are time stamped and written to this file. Each time this file is written to by Radiator, it opens, writes, and then closes the file. This means that you can safely rotate the log file at any time. The file name can include special path name characters. For more information about special characters, see Section 3.1. Special characters. The default is %L/logfile, i.e. a file named logfile in LogDir. For more information, see Section 3.5.12. LogDir.
Here is an example of using LogFile and special characters:
# Log file goes in /var/log, with year number
LogFile /var/log/%Y-radius.log
You can disable all logging to the log file by setting LogFile to be the empty string:
# Disable logging to log file completely
If the file name starts with a vertical bar character | then the rest of the filename is assumed to be a program to which the output is to be piped. Otherwise the output is appended to the named file.
# Pipe to my-log-prog
LogFile |/usr/local/bin/my-log-prog
If LogFile is defined in your configuration file, <Log FILE> is invisibly created to handle it. For more information, see Section 3.19. <Log FILE>. You can customise the logging format, and also log microseconds by using <Log FILE> and its parameters instead of LogFile.