http://www.zytrax.com/books/dns/ch7/logging.html