keep logs inside Profile is log is not defined.