Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RequestIDString = "request-id"
)
Functions ¶
Types ¶
type Logger ¶
Logger simply wraps the zerolog logger.
func LoggerFromConfig ¶
LoggerFromConfig initializes a service-specific logger instance.
type LogrusWrapper ¶
type LogrusWrapper struct {
// contains filtered or unexported fields
}
LogrusWrapper around zerolog. Required because idp uses logrus internally.
func (*LogrusWrapper) Fire ¶
func (h *LogrusWrapper) Fire(entry *logrus.Entry) error
Fire called by logrus on new message
func (*LogrusWrapper) Levels ¶
func (h *LogrusWrapper) Levels() []logrus.Level
Levels on which logrus hooks should be triggered
Click to show internal directories.
Click to hide internal directories.