in reply to Logging and performance

Are you sure that logging is the problem? You should profile your code to find out where it's really is spending its time before you worry about optimizing some part of it. It's possible that logging is not a big enough part of your execution time to be worth optimizing.