charmbracelet / log

A minimal, colorful Go logging library 🪵
MIT License
2.4k stars 67 forks source link

Add format methods #32

Closed bbedward closed 1 year ago

bbedward commented 1 year ago

Hey cool package, I really like it.

I think it would be nice to add methods that auto apply formatting just to make it simpler.

For example, instead of

log.Info(fmt.Sprintf("%s", "hello"))

It would be nice to do

log.Infof("%s", "hello")