func (m *Base) SeverityShortLevel() *string {
	if m.Severity != nil {
		msg := common.SeverityLevelsShort[*m.Severity]
		return &msg
	}
	return nil
}
SeverityShortLevel returns the short text level for the current severity value.
package syslog
import (
	"io"
	"time"
	"github.com/influxdata/go-syslog/v3/common"
)
type BestEfforter interface {
	WithBestEffort()
	HasBestEffort() bool
}
type MaxMessager interface {
	WithMaxMessageLength(length int)
}
type Machine interface {
	Parse(input []byte) (Message, error)
	BestEfforter
}
type MachineOption func(m Machine) Machine
type Parser interface {
	Parse(r io.Reader)
	WithListener(ParserListener)
	BestEfforter
	MaxMessager
}
type ParserOption func(p Parser) Parser
type ParserListener func(*Result)
type Result struct {
	Message Message
	Error   error
}
type Message interface {
	Valid() bool
	FacilityMessage() *string
	FacilityLevel() *string
	SeverityMessage() *string
	SeverityLevel() *string
	SeverityShortLevel() *string
	ComputeFromPriority(value uint8)
}
type Base struct {
	Facility  *uint8
	Severity  *uint8
	Priority  *uint8
	Timestamp *time.Time
	Hostname  *string
	Appname   *string
	ProcID    *string
	MsgID     *string
	Message   *string
}
func (m *Base) Valid() bool {
	return m.Priority != nil && common.ValidPriority(*m.Priority)
}
func (m *Base) ComputeFromPriority(value uint8) {
	m.Priority = &value
	facility := uint8(value / 8)
	severity := uint8(value % 8)
	m.Facility = &facility
	m.Severity = &severity
}
func (m *Base) FacilityMessage() *string {
	if m.Facility != nil {
		msg := common.Facility[*m.Facility]
		return &msg
	}
	return nil
}
func (m *Base) FacilityLevel() *string {
	if m.Facility != nil {
		if msg, ok := common.FacilityKeywords[*m.Facility]; ok {
			return &msg
		}
		msg := common.Facility[*m.Facility]
		return &msg
	}
	return nil
}
func (m *Base) SeverityMessage() *string {
	if m.Severity != nil {
		msg := common.SeverityMessages[*m.Severity]
		return &msg
	}
	return nil
}
func (m *Base) SeverityLevel() *string {
	if m.Severity != nil {
		msg := common.SeverityLevels[*m.Severity]
		return &msg
	}
	return nil
}