batazor/go-auth

View on GitHub
utils/logger.go

Summary

Maintainability
A
0 mins
Test Coverage

exported method StructuredLoggerEntry.Panic should have comment or be unexported
Open

func (l *StructuredLoggerEntry) Panic(v interface{}, stack []byte) {
Severity: Minor
Found in utils/logger.go by golint

exported function NewStructuredLogger should have comment or be unexported
Open

func NewStructuredLogger(logger *logrus.Logger) func(next http.Handler) http.Handler {
Severity: Minor
Found in utils/logger.go by golint

exported function LogEntrySetField should have comment or be unexported
Open

func LogEntrySetField(r *http.Request, key string, value interface{}) {
Severity: Minor
Found in utils/logger.go by golint

exported method StructuredLogger.NewLogEntry should have comment or be unexported
Open

func (l *StructuredLogger) NewLogEntry(r *http.Request) middleware.LogEntry {
Severity: Minor
Found in utils/logger.go by golint

exported function GetLogEntry should have comment or be unexported
Open

func GetLogEntry(r *http.Request) logrus.FieldLogger {
Severity: Minor
Found in utils/logger.go by golint

don't use underscores in Go names; var err_str should be errStr
Open

    err_str := `{
Severity: Minor
Found in utils/logger.go by golint

exported function LogEntrySetFields should have comment or be unexported
Open

func LogEntrySetFields(r *http.Request, fields map[string]interface{}) {
Severity: Minor
Found in utils/logger.go by golint

There are no issues that match your filters.

Category
Status