syslog

package
v0.0.0-...-2a9769d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	// contains filtered or unexported fields
}

func Parse

func Parse(data []byte) (*Log, int, error)

func (*Log) Appname

func (m *Log) Appname() string

func (*Log) Facility

func (m *Log) Facility() int

func (*Log) Hostname

func (m *Log) Hostname() string

func (*Log) Message

func (m *Log) Message() string

func (*Log) MsgID

func (m *Log) MsgID() string

func (*Log) Priority

func (m *Log) Priority() int

func (*Log) ProcID

func (m *Log) ProcID() string

func (*Log) Severity

func (m *Log) Severity() int

func (*Log) String

func (m *Log) String() string

func (*Log) StructureData

func (m *Log) StructureData() structureData

func (*Log) Timestamp

func (m *Log) Timestamp() time.Time

func (*Log) Version

func (m *Log) Version() int

type Property

type Property struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL