Logger is now mostly ok, next step is generating the module.