setLogger

Initializes the logger.