add maxsize for log file