add logger2 which write to file