Documentation ¶
Index ¶
- func GetLoggerLevel(lvl string) zapcore.Level
- func InitLog(path, level string)
- func LocalTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- type MLogger
- func (c *MLogger) DPanic(ctx context.Context, args ...interface{})
- func (c *MLogger) DPanicf(template string, ctx context.Context, args ...interface{})
- func (c *MLogger) DPanicw(ctx context.Context, msg string, args ...interface{})
- func (c *MLogger) Debug(ctx context.Context, args ...interface{})
- func (c *MLogger) Debugf(template string, ctx context.Context, args ...interface{})
- func (c *MLogger) Debugw(ctx context.Context, msg string, args ...interface{})
- func (c *MLogger) Error(ctx context.Context, args ...interface{})
- func (c *MLogger) Errorf(template string, ctx context.Context, args ...interface{})
- func (c *MLogger) Errorw(ctx context.Context, msg string, args ...interface{})
- func (c *MLogger) Fatal(ctx context.Context, args ...interface{})
- func (c *MLogger) Fatalf(template string, ctx context.Context, args ...interface{})
- func (c *MLogger) Fatalw(ctx context.Context, msg string, args ...interface{})
- func (c *MLogger) Info(ctx context.Context, args ...interface{})
- func (c *MLogger) Infof(template string, ctx context.Context, args ...interface{})
- func (c *MLogger) Infow(ctx context.Context, msg string, args ...interface{})
- func (c *MLogger) Panic(ctx context.Context, args ...interface{})
- func (c *MLogger) Panicf(template string, ctx context.Context, args ...interface{})
- func (c *MLogger) Panicw(ctx context.Context, msg string, args ...interface{})
- func (c *MLogger) Warn(ctx context.Context, args ...interface{})
- func (c *MLogger) Warnf(template string, ctx context.Context, args ...interface{})
- func (c *MLogger) Warnw(ctx context.Context, msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLoggerLevel ¶
func LocalTimeEncoder ¶
func LocalTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
Types ¶
type MLogger ¶
type MLogger struct {
Slogger *zap.SugaredLogger
}
var (
Logger MLogger
)
Click to show internal directories.
Click to hide internal directories.