func (log *nillog) Infof(format string, args ...interface{}) {
}
Infof logs a message with given format and arguments
package log
import (
	"fmt"
	"testing"
)
func TestBasic(t *testing.T) {
	Configure("std", "debug", false)
	Debugf("msg")
	Infof("msg")
	Warnf("msg")
	Errorf("msg")
	if !E(fmt.Errorf("Test error to pint")) {
		t.Fatalf("Should return true when error is not nil")
	}
	if E(nil) {
		t.Fatalf("Should return false when error is nil")
	}
	l := WithFields(Fields{"Test field 1": "val1", "Test field2": "val2"})
	l.Debugf("msg with fields")
	l.Infof("msg with fields")
	l.Warnf("msg with fields")
	l.Errorf("msg with fields")
	if !EL(l, fmt.Errorf("Print error with fields")) {
		t.Fatalf("Should return true when error is not nil")
	}
	l = WithFields(Fields{})
	l.Debugf("msg with empty fields")
	l.Infof("msg with empty fields")
	l.Warnf("msg with empty fields")
	l.Errorf("msg with empty fields")
}
func TestWrongLogger(t *testing.T) {
	Configure("non_existent_logger", "debug", false)
	if _, ok := def.(*stdlog); !ok {
		t.Fatalf("stdlog should be created by default")
	}
}
func TestWrongLevel(t *testing.T) {
	if ParseLevel("non_existent_level") != Info {
		t.Fatalf("default log level should info")
	}
}
type nillog struct {
	fatalf int
	panicf int
}
func (log *nillog) Debugf(format string, args ...interface{}) {
}