Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Name string // Service name used for identification of logs in Loki. URL string // Loki API server endpoint URL. BatchSize int // Number of logs to batch before sending to Loki. AccessToken string // Authentication token for accessing the Loki API. FlushInterval time.Duration RetryCount int }
Config Structure holds Loki specific configuration parameters.
type LokiLogger ¶
type LokiLogger struct {
// contains filtered or unexported fields
}
LokiLogger Structure represents a logger to Loki.
func (*LokiLogger) Shutdown ¶
func (l *LokiLogger) Shutdown()
type LokiStream ¶
type LokiStream struct { Stream map[string]string `json:"stream"` // Key-value pairs to identify log stream. Values [][2]string `json:"values"` // Array of log values with timestamp and log message. }
LokiLogger Structure represents Loki Log Logger.
Click to show internal directories.
Click to hide internal directories.