used to log program status