standardize event log and logging with fprintf instead of printf