From a2f80bd9c0ccfd63d3826dc68fcafa094833132e Mon Sep 17 00:00:00 2001 From: Antoine Grondin Date: Mon, 7 Sep 2015 20:49:55 -0400 Subject: [PATCH] add compile checks for StdLogger interface --- logrus.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/logrus.go b/logrus.go index 43ee12e..0c09fbc 100644 --- a/logrus.go +++ b/logrus.go @@ -74,7 +74,11 @@ const ( ) // Won't compile if StdLogger can't be realized by a log.Logger -var _ StdLogger = &log.Logger{} +var ( + _ StdLogger = &log.Logger{} + _ StdLogger = &Entry{} + _ StdLogger = &Logger{} +) // StdLogger is what your logrus-enabled library should take, that way // it'll accept a stdlib logger and a logrus logger. There's no standard