fix(logger): clarify log target
Description
Clarified the log target as it was very misleading as to where it would print:
-// Log prints output to StdErr
-func (s *IOStreams) Log(msg ...any) {
+// LogLogError prints output to StdErr
+func (s *IOStreams) LogError(msg ...any) {
fmt.Fprintln(s.StdErr, msg...)
}
-// Logf formats according to a format specifier and writes to StdErr
-func (s *IOStreams) Logf(format string, a ...any) {
+// LogLogErrorf formats according to a format specifier and writes to StdErr
+func (s *IOStreams) LogErrorf(format string, a ...any) {
fmt.Fprintf(s.StdErr, format, a...)
}
- fix(logger): clarify log target
Related Issues
How has this been tested?
make test
Screenshots (if appropriate):
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to change) -
Documentation -
Chore (Related to CI or Packaging to platforms) -
Test gap