add log toggle functional
add process output logic to log view;