Documentation ¶
Index ¶
- func AccessLogOptionJWTLogging(c *gin.Context, fields *logrus.Fields)
- func AccessLogOptionRequestBody(c *gin.Context, fields *logrus.Fields)
- func GetElasticHook(app, url, accessKey, secretKey string) (logrus.Hook, error)
- func GetJSONFileHook(dir, file string) (logrus.Hook, error)
- func Init(opts ...Option) (interfaces.IDotpeLogger, error)
- type FileLogConfig
- type IHookContainer
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessLogOptionJWTLogging ¶ added in v1.1.0
func AccessLogOptionRequestBody ¶ added in v1.1.0
func GetElasticHook ¶ added in v1.1.3
func GetJSONFileHook ¶ added in v1.1.3
absolute filename /home/bob/work/app.log
func Init ¶ added in v1.1.0
func Init(opts ...Option) (interfaces.IDotpeLogger, error)
InitLogger sets up the logger object with LoeggerOptions provided. It returns reference logger object and error
Types ¶
type FileLogConfig ¶ added in v1.0.17
type FileLogConfig struct {
// contains filtered or unexported fields
}
type IHookContainer ¶ added in v1.1.3
func NewElasticHookContainer ¶ added in v1.1.3
func NewElasticHookContainer(Client, AccessKey, SecretKey, APP, APPID string) IHookContainer
func NewFileHookContainer ¶ added in v1.1.3
func NewFileHookContainer(app string) IHookContainer
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 WithHookContainer ¶ added in v1.1.0
func WithHookContainer(hookContainer IHookContainer) Option
func WithLogOptions ¶ added in v1.1.0
func WithLogOptions(opts ...logOption) Option
Click to show internal directories.
Click to hide internal directories.