Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LokiHandler ¶
type LokiHandler struct {
// contains filtered or unexported fields
}
type Option ¶
type Option struct {
// log level (default: debug)
Level slog.Leveler
// loki endpoint
Endpoint string
// log batching
BatchWait time.Duration
BatchEntriesNumber int
// contains filtered or unexported fields
}
func (Option) NewLokiHandler ¶
@TODO: creating a promptail client at each `NewLokiHandler` call may lead to connection leak when chaining many operations: `logger.With(...).With(...).With(...).With(...)`
Click to show internal directories.
Click to hide internal directories.