mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 05:38:04 +00:00
d41b44dc42
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")
|
|
}
|
|
}
|