Implemented an option to do size trimming when converting log file to a JSON file.
Implemented an option to do size trimming when converting log file to a JSON file.

SciLifeLab/scilifelab,kate-v-stepanova/scilifelab,jun-wan/scilifelab,senthil10/scilifelab,SciLifeLab/scilifelab,jun-wan/scilifelab,kate-v-stepanova/scilifelab,senthil10/scilifelab,jun-wan/scilifelab,SciLifeLab/scilifelab,senthil10/scilifelab,senthil10/scilifelab,jun-wan/scilifelab,SciLifeLab/scilifelab,kate-v-stepanova/scilifelab,kate-v-stepanova/scilifelab