Documentation ¶
Index ¶
- func Bugtool(outFname string) error
- func SaveInitInfo(info *InitInfo) error
- type InitInfo
- type MultiLog
- func (ml *MultiLog) Info(args ...interface{})
- func (ml *MultiLog) Infof(format string, args ...interface{})
- func (ml *MultiLog) Warn(args ...interface{})
- func (ml *MultiLog) Warnf(format string, args ...interface{})
- func (ml *MultiLog) WithError(err error) *MultiLogEntry
- func (ml *MultiLog) WithField(key string, value interface{}) *MultiLogEntry
- type MultiLogEntry
- func (mle *MultiLogEntry) Info(args ...interface{})
- func (mle *MultiLogEntry) Infof(format string, args ...interface{})
- func (mle *MultiLogEntry) Warn(args ...interface{})
- func (mle *MultiLogEntry) Warnf(format string, args ...interface{})
- func (mle *MultiLogEntry) WithError(err error) *MultiLogEntry
- func (mle *MultiLogEntry) WithField(key string, value interface{}) *MultiLogEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveInitInfo ¶
SaveInitInfo saves InitInfo to the info file
Types ¶
type InitInfo ¶
type InitInfo struct { ExportFname string `json:"export_fname"` LibDir string `json:"lib_dir"` BtfFname string `json:"btf_fname"` ServerAddr string `json:"server_address"` MetricsAddr string `json:"metrics_address"` }
InitInfo contains information about how Tetragon was initialized.
func LoadInitInfo ¶
LoadInitInfo returns the InitInfo by reading the info file from its default location
type MultiLog ¶
type MultiLog struct {
Logs []logrus.FieldLogger
}
MultiLog maintains multiple loggers
func (*MultiLog) WithError ¶
func (ml *MultiLog) WithError(err error) *MultiLogEntry
WithError adds err as a single field (using ErrorKey)
func (*MultiLog) WithField ¶
func (ml *MultiLog) WithField(key string, value interface{}) *MultiLogEntry
WithField creates a new entry and adds a field to it.
type MultiLogEntry ¶
MultiLogEntry maintains entries generated using a MultiLog
func (*MultiLogEntry) Info ¶
func (mle *MultiLogEntry) Info(args ...interface{})
Info logs at the Info level
func (*MultiLogEntry) Infof ¶
func (mle *MultiLogEntry) Infof(format string, args ...interface{})
func (*MultiLogEntry) Warn ¶
func (mle *MultiLogEntry) Warn(args ...interface{})
Warn logs at the Warning level
func (*MultiLogEntry) Warnf ¶
func (mle *MultiLogEntry) Warnf(format string, args ...interface{})
func (*MultiLogEntry) WithError ¶
func (mle *MultiLogEntry) WithError(err error) *MultiLogEntry
WithError adds err as a single field (using ErrorKey)
func (*MultiLogEntry) WithField ¶
func (mle *MultiLogEntry) WithField(key string, value interface{}) *MultiLogEntry
WithField creates a new entry by adding a field to an existing one
Click to show internal directories.
Click to hide internal directories.