setLogger

Initializes the logger

NOTE: in a future release we will remove level argument.