Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnhandledLoggerType = errors.New("unhandled logger type")
)
Functions ¶
Types ¶
type LoggerOption ¶
type LoggerOption func(*logger)
func WithLoggerType ¶
func WithLoggerType(lt LoggerType) LoggerOption
func WithWriter ¶
func WithWriter(w io.Writer) LoggerOption
type LoggerType ¶
type LoggerType string
const ( LoggerTypeAuto LoggerType = "auto" LoggerTypeDiscard LoggerType = "discard" LoggerTypeJson LoggerType = "json" LoggerTypeSystemd LoggerType = "systemd" LoggerTypeText LoggerType = "text" )
type LoggerTypeVar ¶
type LoggerTypeVar struct {
// contains filtered or unexported fields
}
func (*LoggerTypeVar) Set ¶
func (lt *LoggerTypeVar) Set(s string) error
func (*LoggerTypeVar) String ¶
func (lt *LoggerTypeVar) String() string
func (LoggerTypeVar) Type ¶
func (lt LoggerTypeVar) Type() string
type SystemdHandler ¶
type SystemdHandler struct {
// contains filtered or unexported fields
}
func NewSystemdHandler ¶
func NewSystemdHandler(w io.Writer, opts *slog.HandlerOptions) *SystemdHandler
Click to show internal directories.
Click to hide internal directories.