Added switch statement function to LogView.cpp