Log before something happens.