logger

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger *log.Entry
)

Functions

func Debug

func Debug(message string)

func Error

func Error(err error)

func Fatal

func Fatal(err error)

func Info

func Info(message string)

func NewLogger

func NewLogger() *log.Entry

func SetFormatter

func SetFormatter(format string)

func SetLabel added in v0.0.7

func SetLabel(labels map[string]string)

func SetOutput

func SetOutput(path string)

func SetRotation

func SetRotation(path string, maxSize, maxAge int)

func WithFields

func WithFields(fields log.Fields) *log.Entry

Types

type AuditEventLog added in v0.0.4

type AuditEventLog struct {
	Action     string
	Hostname   string
	PID        uint32
	Comm       string
	ParentComm string
}

type LogLabels added in v0.0.7

type LogLabels struct {
	Labels map[string]string
}

type RestrictedFileAccessLog added in v0.0.4

type RestrictedFileAccessLog struct {
	AuditEventLog
	Path string
}

func (*RestrictedFileAccessLog) Info added in v0.0.4

func (l *RestrictedFileAccessLog) Info()

type RestrictedMountLog added in v0.0.5

type RestrictedMountLog struct {
	AuditEventLog
	SourcePath string
}

func (*RestrictedMountLog) Info added in v0.0.5

func (l *RestrictedMountLog) Info()

type RestrictedNetworkLog added in v0.0.4

type RestrictedNetworkLog struct {
	AuditEventLog
	Addr     string
	Domain   string
	Port     uint16
	Protocol string
}

func (*RestrictedNetworkLog) Info added in v0.0.4

func (l *RestrictedNetworkLog) Info()

Jump to

Keyboard shortcuts

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