added logging class and used it in layout file