added 'Truncate log' option.