Added a custom logger