Documentation
¶
Overview ¶
Package logger includes extended JSON logging functionality
Index ¶
- Variables
- func Debug(message string)
- func Error(message string, errs ...error)
- func GinFormatter(param gin.LogFormatterParams) string
- func Info(message string)
- func Init(conf config.Config)
- func TimeFormated(time *time.Time) string
- func Trace(message string)
- func Warning(message string)
- type EventLogData
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // LogLevel holds the application's current log level LogLevel int // ArtifactID holds the image being used to run the application ArtifactID string // ServiceName holds the application's name in the service discovery system ServiceName string )
Functions ¶
func GinFormatter ¶
func GinFormatter(param gin.LogFormatterParams) string
GinFormatter is used to adapt Gin's logging to the Qvantel standard
func TimeFormated ¶
TimeFormated Formats the provided time according to 'yyyy-MM-dd'T'HH:mm:ssZ'
Types ¶
type EventLogData ¶
type EventLogData struct { TimeStamp string `json:"@timestamp"` Version string `json:"@version"` LogType string `json:"log_type"` LogLevel string `json:"log_level"` LevelValue int `json:"level_value"` ServiceName string `json:"service_name"` LoggerName string `json:"logger_name"` ArtifactID string `json:"artifact_id"` TraceToken string `json:"trace_token"` Message string `json:"message"` }
EventLogData contains the needed information to be rendered as a logstash compatible json event log
Click to show internal directories.
Click to hide internal directories.