mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-05 17:36:59 +08:00
Add accessor for the yq logger instance (#1013)
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>
This commit is contained in:
co-authored by
Carolyn Van Slyck
Rob Ferguson
parent
176fec639d
commit
d41b44dc42
@@ -15,6 +15,11 @@ import (
|
||||
|
||||
var log = logging.MustGetLogger("yq-lib")
|
||||
|
||||
// GetLogger returns the yq logger instance.
|
||||
func GetLogger() *logging.Logger {
|
||||
return log
|
||||
}
|
||||
|
||||
type operationType struct {
|
||||
Type string
|
||||
NumArgs uint // number of arguments to the op
|
||||
|
||||
Reference in New Issue
Block a user