Send logs from the linelog module to stdout

Alan DeKok aland at deployingradius.com
Wed Sep 20 12:22:35 UTC 2023


On Sep 20, 2023, at 8:00 AM, work vlpl <thework.vlpl at gmail.com> wrote:
> 
> Yes, I understand that Docker puts additional limitations, and by
> default puts such permission restrictions on /dev/stdout file, which
> prevents freeradius from writing logs to that file.
> 
> But for example, when freeradius in debug mode i.e. "-fxxl stdout" I
> see data from the linelog module instructions, so I hope there is
> nothing too wrong with the idea of redirecting linelog output to
> stdout.

  When you pass "-l stdout" to the server, it doesn't open /dev/stdout.  It just keeps using the existing file handle that was passed to it by Docker.

> Also, code that writes data to files in linelog module does a bit more
> with files than just printing data to stdout/stderr, like checking
> permissions, and other things.
> There is already a code branch to deal with "syslog" destination, may
> I ask you to consider adding something like that for stdout/stderr
> destination?

  You're welcome to send a patch.

  Alan DeKok.



More information about the Freeradius-Users mailing list