Documentation ¶
Index ¶
Constants ¶
View Source
const ( TextFormat = "text" JsonFormat = "json" )
Variables ¶
This section is empty.
Functions ¶
func Error ¶
Error logs a message at ErrorLevel. The message includes any fields passed at the log site, as well as any fields accumulated on the logger.
Types ¶
type Config ¶
type Config struct { slog.HandlerOptions OutputPaths []string Format string ErrPaths []string ExtFields map[string]interface{} }
func DefaultConfig ¶
func DefaultConfig() *Config
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) Error ¶
Error logs a message at ErrorLevel. The message includes any fields passed at the log site, as well as any fields accumulated on the logger.
type MultiHandler ¶
type MultiHandler struct {
// contains filtered or unexported fields
}
func NewMultiHandler ¶
func NewMultiHandler(config *Config) (*MultiHandler, error)
Click to show internal directories.
Click to hide internal directories.