Fix clear log file bug of internal Log.