Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessLogOptionRequestBody ¶ added in v1.1.0
Types ¶
type IDotpeLogger ¶ added in v1.2.14
type IDotpeLogger interface { ILogWriter Gin() gin.HandlerFunc }
ILogger ...
func MustGet ¶ added in v1.2.15
func MustGet(opts ...Option) IDotpeLogger
type ILogWriter ¶ added in v1.2.14
type ILogWriter interface { // Deprecated: Use [Log] instead. WriteLogs(context.Context, Fields, Level, string) Log(context.Context, Fields, Level, string) Info(context.Context, Fields, string) Warn(context.Context, Fields, string) Error(context.Context, Fields, string) Debug(context.Context, Fields, string) Panic(context.Context, Fields, string) Fatal(context.Context, Fields, string) }
func DefaultLogWriter ¶ added in v1.2.15
func DefaultLogWriter() ILogWriter
func LogWriter ¶ added in v1.2.15
func LogWriter() ILogWriter
type Option ¶ added in v1.1.0
type Option func(dlogger *dlogger)
func WithAccessLogOptions ¶ added in v1.1.0
func WithAccessLogOptions(opts ...accessLogOption) Option
func WithAppInfo ¶ added in v1.1.0
func WithLogOptions ¶ added in v1.1.0
func WithLogOptions(opts ...logOption) Option
func WithMetric ¶ added in v1.2.29
Click to show internal directories.
Click to hide internal directories.