log should be defined.