Shortening of log file