Pass in a common structured logger interface like https://github.com/go-logr/logr and config using the options pattern, see https://www.sohamkamani.com/blog/golang/options-pattern/ This will be a breaking change because the exposed api changes ... v2 here we come!