Documentation ¶
Index ¶
- Constants
- Variables
- func Debug(msg string, fields ...zapcore.Field)
- func DebugContext(ctx context.Context, msg string, fields ...zapcore.Field)
- func Error(msg string, fields ...zapcore.Field)
- func ErrorContext(ctx context.Context, msg string, fields ...zapcore.Field)
- func Fatal(msg string, fields ...zapcore.Field)
- func FatalContext(ctx context.Context, msg string, fields ...zapcore.Field)
- func GetDefaultLogger() *otelzap.Logger
- func Info(msg string, fields ...zapcore.Field)
- func InfoContext(ctx context.Context, msg string, fields ...zapcore.Field)
- func InitLogger(logPath string, level string, opts ...Option)
- func Named(s string) *otelzap.Logger
- func Warn(msg string, fields ...zapcore.Field)
- func WarnContext(ctx context.Context, msg string, fields ...zapcore.Field)
- type Option
Constants ¶
View Source
const LabelLevel = "level"
Variables ¶
View Source
var (
DefaultLogger *otelzap.Logger
)
Functions ¶
func DebugContext ¶ added in v0.0.2
func ErrorContext ¶ added in v0.0.2
func FatalContext ¶ added in v0.0.2
func GetDefaultLogger ¶
func InfoContext ¶ added in v0.0.2
func InitLogger ¶
Types ¶
type Option ¶ added in v0.0.7
type Option func(l *lumberjack.Logger)
func WithCompress ¶ added in v0.0.7
func WithMaxBackups ¶ added in v0.0.7
Click to show internal directories.
Click to hide internal directories.