MP1-4155: changed logging to correctky handle max log file size