mirror of
https://github.com/mikefarah/yq.git
synced 2026-07-10 00:05:38 +00:00
Allow consumers of yqlib to customize the logger instance. Closes #432 Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
11 lines
178 B
Go
11 lines
178 B
Go
package yqlib
|
|
|
|
import "testing"
|
|
|
|
func TestGetLogger(t *testing.T) {
|
|
l := GetLogger()
|
|
if l != log {
|
|
t.Fatal("GetLogger should return the yq logger instance, not a copy")
|
|
}
|
|
}
|