Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RequestIDString = "request-id"
)
Functions ¶
func Deprecation ¶
func Deprecation(a ...any)
Deprecation logs a deprecation message, it is used to inform the user that a certain feature is deprecated and will be removed in the future. Do not use a logger here because the message MUST be visible independent of the log level.
Types ¶
type LineInfoHook ¶
type LineInfoHook struct{}
func (LineInfoHook) Run ¶
Run is a hook to add line info to log messages. I found the zerolog example for this here: https://github.com/rs/zerolog/issues/22#issuecomment-1127295489
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.