Code for Logger. 

Still BETA (possibly alpha).