Moved all the logger's code to its header.
Minor