You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm leaving this for anyone looking for examples for using the library instead of the CLI. I haven't found any documentation describing that, so most of the knowledge came from looking at the tests and the CLI.
package controllers
import (
glog "gopkg.in/op/go-logging.v1"
)
// In production main func will take care of setting the log yq-lib log level.// In test we count on this to set the default log level for all tests.// We do this because yqlib log is very chatty even if it is sometimes very useful.// Of course in an individual test one could change the level and reset to the default// via a defer call.funcinit() {
glog.SetLevel(glog.WARNING, "yq-lib")
}
Activity
jaronnie commentedon Jul 1, 2024
how to disable log
jaronnie commentedon Jul 1, 2024
Skarlso commentedon Jul 1, 2024
Like this:
jaronnie commentedon Jul 2, 2024
Thanks
rwxrob commentedon Oct 12, 2024
OMG! Thank you for this. Using
EvaluateNodeswas the secret sauce I needed to make real use of this.