Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Log zerolog.Logger
Functions ¶
func Init ¶
Init initializes the logger. isService: when true, skips stderr (Windows Services have no console).
func LogFilePath ¶ added in v0.2.6
func LogFilePath() string
LogFilePath returns the path to the log file.
Types ¶
type LogSender ¶
LogSender is the interface for shipping logs. Avoids import cycle with api package.
type Shipper ¶
type Shipper struct {
// contains filtered or unexported fields
}
Shipper captures log output and ships it to the API in batches.
func NewShipper ¶
NewShipper creates a log shipper that batches and sends logs.
Click to show internal directories.
Click to hide internal directories.