Documentation ¶
Overview ¶
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This package implements the Dump logger.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
This package implements the shell's wrapper.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogEvent ¶
type LogEvent struct { Timestamp string `json:"@timestamp"` Command string `json:"command"` Output string `json:"output,omitempty"` }
LogEvent: this struct represent a single entry into the JSON log file.
type Sentinel ¶
type Sentinel struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...SentinelOption) *Sentinel
type SentinelOption ¶
type SentinelOption func(*Sentinel)
func WithDumpLogger ¶
func WithDumpLogger(enabled bool, filename string) SentinelOption
func WithJsonLogger ¶
func WithJsonLogger(enabled bool, filename string) SentinelOption
Click to show internal directories.
Click to hide internal directories.