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