viewlog now in class