Documentation
¶
Index ¶
- Constants
- type Config
- func (c *Config) Alert(message string)
- func (c *Config) Alertf(message string, format ...any)
- func (c *Config) Debug(message string)
- func (c *Config) Debugf(message string, format ...any)
- func (c *Config) Error(message string)
- func (c *Config) Errorf(message string, format ...any)
- func (c *Config) Info(message string)
- func (c *Config) Infof(message string, format ...any)
- func (c *Config) Notice(message string)
- func (c *Config) Noticef(message string, format ...any)
- func (c *Config) Panic(message string)
- func (c *Config) Panicf(message string, format ...any)
- func (c *Config) Printf(message string, format ...any)
- func (c *Config) Println(message string)
- func (c *Config) Warn(message string)
- func (c *Config) Warnf(message string, format ...any)
- func (c *Config) WithCustomOut(out io.Writer)
- func (c *Config) WithSlogHandler(handler slog.Handler)
Constants ¶
View Source
const ( PANIC = "PANIC" ALERT = "ALERT" ERROR = "ERROR" WARNING = "WARN" NOTICE = "NOTICE" INFO = "INFO" DEBUG = "DEBUG" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
BaseUrl string
ErrorLevel string
ServiceName string
SessionName string
Slogger *slog.Logger
BulkSend bool
}
func (*Config) WithCustomOut ¶
WithCustomOut allows users to set output to custom writer instead of the default standard output
func (*Config) WithSlogHandler ¶
WithSlogHandler allows users to specify their own slog handler
Directories
¶
| Path | Synopsis |
|---|---|
|
Package barkslogger manages everything related slog handler that's to be used by bark client.
|
Package barkslogger manages everything related slog handler that's to be used by bark client. |
Click to show internal directories.
Click to hide internal directories.