move to using events instead of a logger param