Documentation ¶
Index ¶
- func DPanicCtx(ctx context.Context, message string, fields ...zap.Field)
- func DebugCtx(ctx context.Context, message string, fields ...zap.Field)
- func ErrorCtx(ctx context.Context, message string, fields ...zap.Field)
- func FatalCtx(ctx context.Context, message string, fields ...zap.Field)
- func GetTraceID(ctx context.Context) string
- func InfoCtx(ctx context.Context, message string, fields ...zap.Field)
- func NewLogger(opts ...Option)
- func PanicCtx(ctx context.Context, message string, fields ...zap.Field)
- func WarnCtx(ctx context.Context, message string, fields ...zap.Field)
- type Logger
- type Option
- type OptionFunc
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTraceID ¶
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithCallerSkip ¶
func WithCompress ¶
func WithHistoryLogFileName ¶
func WithLogDir ¶
func WithMaxAge ¶
func WithMaxBackups ¶
func WithMaxSize ¶
type OptionFunc ¶
type OptionFunc func(*Options)
Click to show internal directories.
Click to hide internal directories.