format() format(array $event) : string Formats an event to be written by the handler. Parameters array $event Log event. Returns string — XML string.