Create a static method to configure logger