Documentation ¶
Index ¶
- Constants
- func RequestIdFromContext(ctx context.Context) string
- type Level
- type Logger
- func (l Logger) Close() error
- func (l Logger) Error(ctx context.Context, args ...interface{})
- func (l Logger) Info(ctx context.Context, args ...interface{})
- func (l Logger) NewWithRequestID(requestID string) Logger
- func (l Logger) Println(args ...interface{})
- func (l Logger) Warn(ctx context.Context, args ...interface{})
Constants ¶
View Source
const RequestIdKeyString string = "GrpcRequestUniqueId"
Variables ¶
This section is empty.
Functions ¶
func RequestIdFromContext ¶
To avoid looped dependency. api.RequestIdFromContext() requires RequestContext, while RequestContext depends on meta package.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewFileLogger ¶
func (Logger) NewWithRequestID ¶
Click to show internal directories.
Click to hide internal directories.