LogFile
. For more information, see Section 3.7.13. LogFile. The log
file is opened, written, and closed for each message, which means you can
rotate it at any time.Filename
as a single dash -
is
no longer supported in Radiator 4.18.LogFile
and
Trace
configuration parameters are basically the same
as the following:
<Log FILE> #Trace 0 Filename filename </Log>
<Log xxxxxx>
clause inside any clause in the configuration file. This causes messages
originating from within that clauses code to be logged with the logger
prior to being logged with any global loggers. This can be handy for
debugging or tracing only certain Handler or AuthBy clauses:
<Handler> # This logs messages from within the Handler <Log FILE> Trace 4 Filename xxxxxx ... </Log> </Handler>
%L/logfile
, a file named logfile
in
LogDir
. For more information, see Section 3.7.12. LogDir. Special character
%0
is replaced by the priority integer and
%1
by the log message.Filename
:# Log file goes in /var/log, with year number Filename /var/log/%Y-radius.log
Filename
starts with a vertical bar character |
, 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 Filename |/usr/local/bin/my-log-prog
<Log
FILE>
to log the current microseconds at the end of the time
string.LogTraceId
flag parameter allows logging
messages related to an authentication exchange and to its subsequent
accounting session with a tracing identifier.
LogTraceId
can be configured for global level and Log
clause level. LogTraceId
enables prepending a tracing
ID to messages logged to STDOUT, when LogStdout
is
enabled, and to log file configured with <Log
FILE>
and <Log SYSLOG>
. For more
information, see Section 3.7.2. LogStdout.# Prepend tracing id to log messages LogTraceId
Log
xxxxxx
in any other clause.Identifier
:<AuthBy whatever> # With an Identifier, can refer to this logger from other clauses <Log FILE> Identifier mylogger Filename xxxxxx </Log> .... </AuthBy> <AuthBy whatever> # This AuthBy will log to the Log FILE above Log mylogger ..... </AuthBy>
PacketTrace
debugging. For more information, see
Section 3.14.15. PacketTrace.LogFormatHook
is not defined. Special
formatting characters are permitted. The variables are replaced as
follows: %0
by the message severity as an integer%1
by the severity as a string%2
by the log message%3
by tracing identifier string<Log FILE>
, there is no
default value for LogFormat
and the format is similar
to LogFormat %l:%1:%2
.<Log
SYSLOG>
, there is no default value for
LogFormat
and the format is similar to
LogFormat %2
.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.