change logger to static