Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Add logging functions with string formatting #24

Closed
farshidtz opened this issue Jan 18, 2022 · 0 comments · Fixed by #27
Closed

Add logging functions with string formatting #24

farshidtz opened this issue Jan 18, 2022 · 0 comments · Fixed by #27
Labels
enhancement New feature or request

Comments

@farshidtz
Copy link
Member

The current logging functions take string as input. It would be useful to add corresponding functions (Debugf, Errorf, Infof, Warnf) to accept string formats in a similar fashion to fmt.Printf.

Example code that can be simplified:
https://github.com/edgexfoundry/edgex-go/blob/3acce916edd26c48cc534c43f5f6a7ed858771e5/snap/local/hooks/cmd/configure/configure.go#L552

Moreover, the existing functions can be changed to accept one or more interfaces, instead of just one string. See fmt.Print.

@farshidtz farshidtz added the enhancement New feature or request label Jan 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant