Set up logging in mechanism