initializer to add extra fields to json logs