func()

in internal/pkg/core/deployers/types/log_mediator.go [36:46]


func (logMediator LogMediator) Unmarshal(d *xml.Decoder, start xml.StartElement, position artifacts.Position) (artifacts.Mediator, error) {
	if err := d.DecodeElement(&logMediator, &start); err != nil {
		return artifacts.LogMediator{}, errors.New("error in unmarshalling log mediator in " + position.FileName + " at line " + strconv.Itoa(position.LineNo))
	}
	position.Hierarchy = position.Hierarchy + "->log"
	return artifacts.LogMediator{
		Category: logMediator.Category,
		Message:  logMediator.Message,
		Position: position,
	}, nil
}