I have a program that uses err, errx, warn and warnx to alert the user about some unexpected events. Now I have to turn this program into a daemon, so these alerts should go to a well formated log.
I have redirected stdout and stderr to a file using freopen(3) but this does not provide enough information in the log. For instance I would need the date and time of the error.
Is there a convenient way of doing that using err(3) functions or should I drop the usage of these functions?