added a simple logging class