Documentation ¶
Index ¶
- func GetLogEntry(r *http.Request) logrus.FieldLogger
- func LogCommandExecution(commandName string, cmd interface{}, err error)
- func NewStructuredLogger(logger *logrus.Logger) func(next http.Handler) http.Handler
- func SetFormatter(logger *logrus.Logger)
- type StructuredLogger
- type StructuredLoggerEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogEntry ¶
func GetLogEntry(r *http.Request) logrus.FieldLogger
func LogCommandExecution ¶
func NewStructuredLogger ¶
func SetFormatter ¶
Types ¶
type StructuredLogger ¶
func (StructuredLogger) NewLogEntry ¶
func (l StructuredLogger) NewLogEntry(r *http.Request) middleware.LogEntry
type StructuredLoggerEntry ¶
type StructuredLoggerEntry struct {
Logger logrus.FieldLogger
}
func (*StructuredLoggerEntry) Panic ¶
func (l *StructuredLoggerEntry) Panic(v interface{}, stack []byte)
Click to show internal directories.
Click to hide internal directories.