fix logger in a fast way