chiradeep / go-nitro

A Golang client to the Citrix ADC API
Apache License 2.0
18 stars 21 forks source link

Use hclog instead of log.printf #51

Closed chiradeep closed 3 years ago

chiradeep commented 3 years ago

This should ease usage of this library since otherwise it is too verbose for non-Terraform use cases. With this change, logging can be controlled in 2 ways environment variable (NITRO_LOG=TRACE|DEBUG|INFO|WARN|ERROR|OFF) or client.setLogLevel("<value") Default is OFF. All logs have been changed to use the Key,value format of hclog. We can even turn on JSON logging using hclog