mirror of
https://github.com/mikefarah/yq.git
synced 2025-02-07 10:27:12 +00:00
![Rob Ferguson](/assets/img/avatar_default.png)
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")
|
|
}
|
|
}
|