yaks icon indicating copy to clipboard operation
yaks copied to clipboard

Get rid of fmt.Print...() methods

Open christophd opened this issue 2 years ago • 2 comments

Use proper output writer instead and redirect output

christophd avatar Apr 04 '22 11:04 christophd

Do you have any preferences in that regard?

My suggestion would be https://github.com/hashicorp/go-hclog or https://github.com/uber-go/zap

However, it could also make sense to define a logger interface and implement it with a logger of choice. This would provide the advantage that the log implementation could easily be swapped, should the need arise.

mwmahlberg avatar May 27 '22 21:05 mwmahlberg

@christophd Your thoughts on this?

mwmahlberg avatar May 31 '22 04:05 mwmahlberg