Documentation ¶
Overview ¶
Code generated by log-gen. DO NOT EDIT.
Index ¶
- Constants
- func DPanic(args ...interface{})
- func DPanicf(template string, args ...interface{})
- func DPanicw(msg string, keysAndValues ...interface{})
- func Debug(args ...interface{})
- func Debugf(template string, args ...interface{})
- func Debugw(msg string, keysAndValues ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Errorw(msg string, keysAndValues ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Fatalw(msg string, keysAndValues ...interface{})
- func GetLogger() *zap.SugaredLogger
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func Infow(msg string, keysAndValues ...interface{})
- func Init(opts ...Opt)
- func Panic(args ...interface{})
- func Panicf(template string, args ...interface{})
- func Panicw(msg string, keysAndValues ...interface{})
- func Sync() error
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- func Warnw(msg string, keysAndValues ...interface{})
- type Config
- type Logger
- type Opt
- func AddCore(core ...zapcore.Core) Opt
- func AddHooks(hooks ...func(entry zapcore.Entry) error) Opt
- func SetDisableDefault(b bool) Opt
- func SetEncoder(en zapcore.Encoder) Opt
- func SetFormatType(t string) Opt
- func SetLogLevel(l string) Opt
- func SetLogPath(p string) Opt
- func SetLogSuffix(s string) Opt
- func SetMaxAge(age time.Duration) Opt
- func SetRotationTime(tme time.Duration) Opt
- type SugaredLogger
Constants ¶
View Source
const ( JSON = "json" TEXT = "text" )
Variables ¶
This section is empty.
Functions ¶
func GetLogger ¶ added in v0.0.6
func GetLogger() *zap.SugaredLogger
Types ¶
type Opt ¶
type Opt func(*Config)
func SetDisableDefault ¶
func SetEncoder ¶
func SetFormatType ¶
func SetLogLevel ¶
func SetLogPath ¶
func SetLogSuffix ¶
func SetRotationTime ¶
type SugaredLogger ¶
type SugaredLogger = zap.SugaredLogger
func Named ¶
func Named(name string) *SugaredLogger
func With ¶
func With(args ...interface{}) *SugaredLogger
Click to show internal directories.
Click to hide internal directories.