Documentation
¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func InitWithConfig(cfg *config)
- func NewConfig(opts ...ConfigOption) *config
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- type ConfigOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfig ¶
func NewConfig(opts ...ConfigOption) *config
Types ¶
type ConfigOption ¶
type ConfigOption interface {
// contains filtered or unexported methods
}
func WithLevel ¶
func WithLevel(level string) ConfigOption
func WithMaxAge ¶
func WithMaxAge(max int) ConfigOption
func WithMaxsize ¶
func WithMaxsize(max int) ConfigOption
func WithPath ¶
func WithPath(path string) ConfigOption
func WithServiceName ¶
func WithServiceName(serviceName string) ConfigOption
Click to show internal directories.
Click to hide internal directories.