Re-coded logger facility for better performance and cleaner code plus has better code for rotation of logs.