func (nde *DeviceEvent) GetLogEntry() *logrus.Entry {
	entry := nde.Metadata.getEntry()
	entry.WithFields(logrus.Fields{
		"tty": nde.TTYName,
	})
	if nde.Device.PeerIfindex == 0 {
		return entry.WithFields(logrus.Fields{
			"name":    nde.DeviceName,
			"netns":   nde.Device.Netns,
			"ifindex": nde.Device.Ifindex,
		})
	}
	return entry.WithFields(logrus.Fields{
		"device_name":    nde.DeviceName,
		"device_netns":   nde.Device.Netns,
		"device_ifindex": nde.Device.Ifindex,
		"peer_name":      nde.PeerName,
		"peer_netns":     nde.Peer.Netns,
		"peer_ifindex":   nde.Peer.Ifindex,
	})
}
// GetLogEntry - Returns the event logrus fields
Returns the event logrus fields
// GetLogEntry - Returns the event logrus fields
func (nde *DeviceEvent) GetLogEntry() *logrus.Entry {
	entry := nde.Metadata.getEntry()
	entry.WithFields(logrus.Fields{
		"tty": nde.TTYName,
	})
	if nde.Device.PeerIfindex == 0 {
		return entry.WithFields(logrus.Fields{
			"name":    nde.DeviceName,
			"netns":   nde.Device.Netns,
			"ifindex": nde.Device.Ifindex,
		})
	}
	return entry.WithFields(logrus.Fields{
		"device_name":    nde.DeviceName,
		"device_netns":   nde.Device.Netns,
		"device_ifindex": nde.Device.Ifindex,
		"peer_name":      nde.PeerName,
		"peer_netns":     nde.Peer.Netns,
		"peer_ifindex":   nde.Peer.Ifindex,
	})
}
func ( nde * DeviceEvent ) GetLogEntry ( ) * logrus . Entry { entry := nde . Metadata . getEntry ( ) entry . WithFields ( logrus . Fields { " " : nde . TTYName , } ) if nde . Device . PeerIfindex == 0 { return entry . WithFields ( logrus . Fields { " " : nde . DeviceName , " " : nde . Device . Netns , " " : nde . Device . Ifindex , } ) } return entry . WithFields ( logrus . Fields { " " : nde . DeviceName , " " : nde . Device . Netns , " " : nde . Device . Ifindex , " " : nde . PeerName , " " : nde . Peer . Netns , " " : nde . Peer . Ifindex , } ) }
Returns the event logrus fields
Returns the event logrus fields