mirror of
https://github.com/mikefarah/yq.git
synced 2025-02-26 09:42:29 +00:00

Allow consumers of yqlib to customize the logger instance. Closes #432 Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com> Co-authored-by: Carolyn Van Slyck <me@carolynvanslyck.com> Co-authored-by: Rob Ferguson <robert.j.ferguson@nasa.gov>
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")
|
|
}
|
|
}
|