Sets the events to be logged. Events can be passed as enum values (e.g. FAILED) or Strings (e.g. "failed").
the events to be logged