[Dnsmasq-discuss] Writing multiple logfiles

Simon Kelley simon at thekelleys.org.uk
Mon Apr 14 13:59:46 BST 2008

Hans-Joachim Baader wrote:
> Hi,
> I need a way to write to two log files at once. I don't want to
> use tools like tee (if at all possible) because it's a separate
> process and I want to minimize latency. For this reason one of
> the logfiles will be a pipe.
> Now I could easily hardcode a syslog output in the code, but if
> there is interest, I'd do it in a more generic way, including
> new or modified command line options. What would be the best way
> to do it?
> Thanks,
> hjb

I've not looked in detail, but my guess is that the easiest way would be
to direct all dnsmasq log output to a particular local log facility
(using something like --log-facility=local7) and then configure syslog
to write that to two files.



More information about the Dnsmasq-discuss mailing list