Improving logging

... introducing notion of logging levels.