Made logger static to improve performance. Fixed logger name, back port #749