Moved out the initialization of loggin to it's own module