Added logger to init

Added new init overload with logger parameter, defaulting to empty string if nil. 
Added test for init with logger.