Documentation ¶
Index ¶
- func Debug(ctx context.Context, message string, fields ...Field)
- func Error(ctx context.Context, message string, fields ...Field)
- func Fatal(ctx context.Context, message string, fields ...Field)
- func Info(ctx context.Context, message string, fields ...Field)
- func InitErc()
- func InitLogger(name, application, environment, alias, std string)
- func Warn(ctx context.Context, message string, fields ...Field)
- type Attribute
- type Duration
- type Encoder
- type EncoderConfig
- type Erc
- type Field
- type Level
- type Log
- type Logger
- type ZapLogger
- func (c *ZapLogger) Debug(ctx context.Context, message string, fields ...Field)
- func (c *ZapLogger) Error(ctx context.Context, message string, fields ...Field)
- func (c *ZapLogger) Fatal(ctx context.Context, message string, fields ...Field)
- func (c *ZapLogger) Info(ctx context.Context, message string, fields ...Field)
- func (c *ZapLogger) Warn(ctx context.Context, message string, fields ...Field)
- func (c *ZapLogger) Writer(ctx context.Context, level string, message string, fields ...Field)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶ added in v0.0.3
func InitLogger(name, application, environment, alias, std string)
logger init
Types ¶
type EncoderConfig ¶
type EncoderConfig = zapcore.EncoderConfig
type Erc ¶ added in v0.1.2
func GetDefaultErc ¶ added in v0.1.2
func GetDefaultErc() Erc
func GetErcBaseCode ¶ added in v0.1.8
type Logger ¶
type Logger interface { Debug(ctx context.Context, message string, fields ...Field) Info(ctx context.Context, message string, fields ...Field) Warn(ctx context.Context, message string, fields ...Field) Error(ctx context.Context, message string, fields ...Field) Fatal(ctx context.Context, message string, fields ...Field) }
logger interface
func NewZapLogger ¶
new logger base zap
Click to show internal directories.
Click to hide internal directories.