Documentation ¶
Index ¶
- Constants
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Filter(sourceR io.Reader, options *Options)
- func GlobalInit(level slog.Level, options *Options)
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func NewPrettyHandler(level slog.Level, options *Options) slog.Handler
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- type Builder
- type Options
- func (options *Options) Color() *Options
- func (options *Options) NoColor() *Options
- func (options *Options) SetAbsoluteTime() *Options
- func (options *Options) SetTrimPrefix(prefix string) *Options
- func (options *Options) Starting(t time.Time) *Options
- func (options *Options) StartingToday() *Options
- type PrettyHandler
Constants ¶
View Source
const ChannelKey = "_channel"
Variables ¶
This section is empty.
Functions ¶
func GlobalInit ¶ added in v0.4.0
func NewPrettyHandler ¶ added in v1.0.0
Types ¶
type Options ¶ added in v0.4.0
type Options struct { StartTimestamp time.Time AbsoluteTime bool TrimPrefix string ErrorLabel string WarningLabel string InfoLabel string DebugLabel string TimestampColor string FunctionColor string ChannelColor string FieldsColor string DefaultFgColor string TimestampFormat string }
func DefaultOptions ¶ added in v0.4.0
func DefaultOptions() *Options
func (*Options) SetAbsoluteTime ¶ added in v0.4.0
func (*Options) SetTrimPrefix ¶ added in v0.4.0
func (*Options) StartingToday ¶ added in v0.4.0
type PrettyHandler ¶ added in v1.0.0
type PrettyHandler struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.