use logger in spec.