Documentation ¶
Index ¶
- func AddLogField(ctx context.Context, key string, value interface{}) context.Context
- func Ctx(ctx context.Context) *logrus.Entry
- func Debug(content ...interface{})
- func Error(content ...interface{})
- func Fatal(content ...interface{})
- func Info(content ...interface{})
- func LogDebug(ctx context.Context, content interface{})
- func LogDebugf(ctx context.Context, format string, a ...any)
- func LogError(ctx context.Context, content interface{})
- func LogErrorf(ctx context.Context, format string, a ...any)
- func LogInfo(ctx context.Context, content interface{})
- func LogInfof(ctx context.Context, format string, a ...any)
- func LogRequest(ctx context.Context, content interface{})
- func LogResponse(ctx context.Context, content interface{})
- func LogWarn(ctx context.Context, content interface{})
- func LogWarnf(ctx context.Context, format string, a ...any)
- func LogWithContext(ctx context.Context, content ...interface{})
- func Panic(content ...interface{})
- func Trace(content ...interface{})
- func Warn(content ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLogField ¶
AddLogField add more log field to context
func LogRequest ¶ added in v1.0.2
LogRequest for logging request of api with request_id and correlation_id
func LogResponse ¶ added in v1.0.2
LogResponse for logging respone of api with request_id and correlation_id
func LogWithContext ¶
LogWithContext log content with context content[0] : message -> interface{}, content[1] : log type -> string, content[2] : log field -> map[string]interface{}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.