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)
- func Warn(msg string, fields ...zapcore.Field)
- func WarnContext(ctx context.Context, msg string, fields ...zapcore.Field)
Constants ¶
View Source
const PromLabelLevel = "level" //http method
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 ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.