On Wed, Sep 21, 2011 at 3:03 PM, mouss <mo...@ml.netoyen.net> wrote: > Le 21/09/2011 16:02, Steve Jenkins a écrit : >> I couldn't find anything in the docs, but is there an option to >> minimize Postscreen's log output? For troubleshooting I'd turn logging >> back to full, but perhaps an option to only show the NOQUEUE output in >> the maillog? Assuming this doesn't exist, I think that might be a nice >> feature for future versions. >> > > so you'd like to have > if (shouldlog(feature)) { > logit(...) > } > all around the code?
Saying I'd "like to have" that is incorrect, because that's how a programmer thinks about it - which is fine. However, I'm thinking about it only from the user's perspective, and from that perspective, I always enjoy programs that have a scale of verbosity levels in their programs. I was troubleshooting Unbound earlier today, and had to crank the logging all the way up to level 5 to find what I needed, and then turned it back down to 1. This is a great feature. As far as what it takes to program that feature, I hope none of the programmers on this list won't be offended when I say that users don't really care what it will take to provide something. It's just not how most consumers in any markets are "wired." > the fact that postfix provides "incremental" logs is not without reason. > you may be happy to see Apache logs a line per request, and unhappy to > see that postfix gives you many lines for a single transaction. but for > those of us who care about security, postfix logging is the way: if the > system is compromised in the middle of a transaction, we get some > information to work with. of course, most of the time, this is useless, > but when you need it, it's there. I won't argue with your reasoning - of course having information available when you need it is important. Logging is the key to troubleshooting. I'm simply saying that there are some of us out here who could function just fine with varying amounts of that information, especially after our setups are "stable." Personally, I want every smtpd and qmgr line that Postfix generates in my maillog. But since I'm happy with my DNSBL setup, I could gladly do without the "addr 188.53.28.175 listed by domain zen.spamhaus.org as 127.0.0.11" or "DNSBL rank 6 for [91.226.113.62]:1732" entries, for example. Others will have different wants and needs, of course. Logfiles are knowledge, and knowledge is power, as they say. But as a part-time karate instructor when I'm not being a computer geek, I can attest that flexibility is just as important as power. :) SteveJ