Versions in this module Expand all Collapse all v1 v1.0.0 Aug 20, 2020 Changes in this version + const DebugLevel + const DpanicLevel + const ErrorLevel + const FatalLevel + const InfoLevel + const PanicLevel + const WarnLevel + func NewRus(level string, format logrus.Formatter, w io.Writer, fields logrus.Fields) *logrus.Logger + func NewZap(level string, encoderFunc Encoder, w zapcore.WriteSyncer, fields ...zap.Field) *zap.Logger + func SetWriter(enableDebugLog bool) io.Writer + type Encoder func(zapcore.EncoderConfig) zapcore.Encoder + type RusLogger struct + func NewRusLogger(level string, enableDebugLog bool) *RusLogger + func (r *RusLogger) Debug(format string) + func (r *RusLogger) Error(format string) + func (r *RusLogger) Info(format string) + type ZapLogger struct + func NewZapLogger(level string, enableDebugLog bool) *ZapLogger + func (z *ZapLogger) Debug(format string) + func (z *ZapLogger) Debugf(format string, v ...interface{}) + func (z *ZapLogger) Error(format string) + func (z *ZapLogger) Errorf(format string, v ...interface{}) + func (z *ZapLogger) Info(format string) + func (z *ZapLogger) Infof(format string, v ...interface{})