[Mimedefang] Logging without syslog
Kelly Jones
kelly.terry.jones at gmail.com
Fri Oct 31 22:00:58 EDT 2008
I want to log stuff in mimedefang, but dislike syslog because it drops
packets/loglines, and am too lazy to install syslog-ng.
My obvious thought is to do this in my subroutines:
local(*A);open(A,">>mylogfile");print A "my stuff\n";close(A);
Problem: since mimedefang is multithreaded, 2+ slaves may have
mylogfile open for append at the same time, right?
Thoughts? Can I do some sort of locking?
--
We're just a Bunch Of Regular Guys, a collective group that's trying
to understand and assimilate technology. We feel that resistance to
new ideas and technology is unwise and ultimately futile.
More information about the MIMEDefang
mailing list