Addresses @stevvooe's backward compatibility concerns.

This commit is contained in:
Loren Osborn
2018-10-18 09:33:43 -07:00
parent ef9d84e9b3
commit b54cafe5ce
2 changed files with 14 additions and 5 deletions
+5 -2
View File
@@ -453,9 +453,12 @@ func TestReplaceHooks(t *testing.T) {
}
// Compile test
func TestLogrusInterface(t *testing.T) {
func TestLogrusInterfaces(t *testing.T) {
var buffer bytes.Buffer
fn := func(l FieldLogger) {
// This verifies FieldLogger and Ext1FieldLogger work as designed.
// Please don't use them. Use Logger and Entry directly.
fn := func(xl Ext1FieldLogger) {
var l FieldLogger = xl
b := l.WithField("key", "value")
b.Debug("Test")
}