Getting the logger to work