Closed zhutik closed 6 years ago
My intent was to solve it as simple as possible, especially same approach is used in stripe library :)
For sure, we can find a better solution to check given log level in one place in the code. Given it's currently used in 2 methods only, I don't think it's a big issue to have if
s in code, but let's try to re-work to find nicer solution
Not needed due to merging of https://github.com/zhutik/adyen-api-go/pull/57/files
Add simple log levels and update default to errors and informational
Simple implementation inspired from https://github.com/stripe/stripe-go, so library logging is not tied to any 3rd party implementation
LogErrorInfo
adyen.LogLevel = adyen.LogErrorInfoDebug