thedevsaddam / gojsonq

A simple Go package to Query over JSON/YAML/XML/CSV Data
https://github.com/thedevsaddam/gojsonq/wiki
MIT License
2.18k stars 140 forks source link

Add option for enable Debug mode as well as custom logger #21

Closed thedevsaddam closed 6 years ago

thedevsaddam commented 6 years ago

Add option for enable Debug mode as well as custom logger:

var customLogger *log.Logger
customLogger = log.New(os.Stderr, "", log.LstdFlags)
jq := gojsonq.New(gojsonq.SetDebug(true), gojsonq.SetLogger(&customLogger{}))
thedevsaddam commented 6 years ago

Due to high memory allocation this issue is closed.

It doubled the allocation