Skip to content

Logging library does not export struct fields #1029

@C-Deck

Description

@C-Deck

The logging library used by this project does not export the struct members for the Field struct.

type Logger interface {
	DebugLogger
	InfoLogger
	WarnLogger
	ErrorLogger
	FatalLogger
	PanicLogger
	LevelLogger(level Level) LevelLogger
}

type DebugLogger interface {
	Debug(msg string,fields ...Field)
}

type Field struct {
	kind           FieldKind
	key            string
	stringValue    string
	stringsValue   []string
	intValue       int64
	byteValue      []byte
	interfaceValue interface{}
	errorValue     error
}

This blocks custom implementations of the interface even though the libraries documentation says custom implementations are possible. There is no way to access any fields provided to the custom implementation.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions