Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DPLogger ¶
type DPLogger struct { Lops LoggerOptions Logger *logrus.Logger }
DPLogger ...
func InitLogger ¶
func InitLogger(lops *LoggerOptions) (*DPLogger, error)
InitLogger sets up the logger object with LoeggerOptions provided. It returns reference logger object and error
func (*DPLogger) GinLogger ¶
func (dLogger *DPLogger) GinLogger() gin.HandlerFunc
GinLogger returns a gin.HandlerFunc middleware
type KibanaConfig ¶
type KibanaConfig struct { Client, AccessKey, SecretKey, APPID, Hostname string }
KibanaConfig Mandatory for kibana logging
type LoggerOptions ¶
type LoggerOptions struct { KibanaConfig APP, APPID, LOGENV, WD string // Working directory of the application DisableJSONLogging bool }
LoggerOptions is set of config data for logg
Click to show internal directories.
Click to hide internal directories.