added viewlog