Olsrd can be set to direct various degrees of output describing current
operation and status to the standard output(STDOUT). There are 9 debug levels that can be
used where 1 yields a minimal output while 9 will output lots of
information. Olsrd also logs start, stop and errors to the system log
using the glibc syslog(3) interface.
If olsrd is set to run at debug-level 0, it will detach itself from the
parent process and run in the background as most daemons
do, syslogging will still be done.
The debug level is set either at the command line using the -d
switch, or in the configuration file.
The interface for STDOUT output from olsrd is the function:
int olsr_printf(int, char *, ...);
This function is basically just a wrapper for the printf(2)
standard library call. But the function takes a debug-level integer
as the first parameter. This value indicates what minimum debug-level
is required for the output to be displayed.
Andreas 2004-07-29