passing in a logger to plugins