Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct {
LogEventMetadata Metadata `textlog:",expand"`
Data Fields `textlog:",expand"`
EventVersion common.Version `json:"log_version"`
}
func (Event) MarshalJSON ¶
func (*Event) Metadata ¶
func (e *Event) Metadata() *common.LogEventMetadata
func (*Event) UnmarshalJSON ¶
type Fields ¶
type Fields []Field
func (Fields) MarshalJSON ¶
func (Fields) MarshalTextLog ¶
func (m Fields) MarshalTextLog(t jsonlog.TextlogFormatter) jsonlog.TextlogEntry
func (*Fields) UnmarshalJSON ¶
type Metadata ¶
type Metadata struct {
Time time.Time `json:"time" textlog:"-"`
Lvl common.LogLevel `json:"level" textlog:"-"`
Mod string `json:"module" textlog:"module"`
ScanID string `json:"scanid" textlog:"scanid,omitempty"`
GenID string `json:"uid" textlog:"uid,omitempty"`
Source string `json:"hostname" textlog:"-"`
}
Click to show internal directories.
Click to hide internal directories.