added a logger with the revealing module pattern