Documentation ¶
Index ¶
- func Debug(ctx context.Context, message string)
- func Error(ctx context.Context, message, code string)
- func ErrorWithStack(ctx context.Context, err error)
- func ErrorWithStackWithoutRequestID(ctx context.Context, err error)
- func Fatal(ctx context.Context, message, code string)
- func FatalErrorWithStack(ctx context.Context, err error, code string)
- func GenerateRequestID() string
- func HTTPCtxValuesMiddleware(next http.Handler) http.Handler
- func HTTPRequestMiddleware() func(next http.Handler) http.Handler
- func Info(ctx context.Context, message string)
- func Panic(ctx context.Context, message, code string)
- func SetDebugLevel()
- func SetDisabled()
- func SetFatalLevel()
- func Warn(ctx context.Context, message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorWithStack ¶
ErrorWithStack logs a message of error and all previous errors.
func ErrorWithStackWithoutRequestID ¶
ErrorWithStackWithoutRequestID logs a message of error without requestID
func FatalErrorWithStack ¶
FatalErrorWithStack logs a message of error and all previous errors and call Fatal .
func GenerateRequestID ¶
func GenerateRequestID() string
GenerateRequestID generates unique request_id
func HTTPCtxValuesMiddleware ¶
HTTPCtxValuesMiddleware ->
func HTTPRequestMiddleware ¶
HTTPRequestMiddleware ->
func SetDisabled ¶
func SetDisabled()
SetDisabled disable logger. Be carefull fatal and panic dont stop application.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.