logrus icon indicating copy to clipboard operation
logrus copied to clipboard

Add a getter for the Entry.err

Open VadimKulagin opened this issue 5 years ago • 2 comments

Hello!

I want to implement my Formatter and for this I need access to the Entry.err field. But, unfortunately, this is not possible now, since this field is private.

I ended up adding a getter for this field:

// Err returns an internal field formatting error.
func (entry *Entry) Err() string {
	return entry.err
}

VadimKulagin avatar Aug 27 '19 12:08 VadimKulagin

Are there any chances for merge?

VadimKulagin avatar Feb 26 '20 19:02 VadimKulagin

@markphelps Still relevant enhancement, not stale. Any updates/thoughts?

pashaosipyants avatar Jun 14 '20 07:06 pashaosipyants