Documentation ¶
Index ¶
- Constants
- func Init(config *config.Config) (err error)
- func InitWithLogger(l logrus.FieldLogger)
- func L() *logrus.Entry
- func LOG(ctx context.Context) *logrus.Entry
- func LOGE(c *gin.Context, err error, status int) *logrus.Entry
- func NewSublogger(tag string) *logrus.Entry
- func SetupLogger(c *gin.Context, fields logrus.Fields)
Constants ¶
View Source
const (
ContextLoggerKey = "lg"
)
Variables ¶
This section is empty.
Functions ¶
func InitWithLogger ¶ added in v0.2.32
func InitWithLogger(l logrus.FieldLogger)
func NewSublogger ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.