1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-18 20:59:43 +02:00

Allow logger.Info multiple args

This commit is contained in:
HarveyKandola 2021-10-07 14:16:05 -04:00
parent c6863201b3
commit 60dfb54d54

View file

@ -37,7 +37,7 @@ func (l Logger) Info(message string) {
// Infof logs message via Sprintf. // Infof logs message via Sprintf.
func (l Logger) Infof(message string, a ...interface{}) { func (l Logger) Infof(message string, a ...interface{}) {
l.log.Println(fmt.Sprintf(message, a)) l.log.Println(fmt.Sprintf(message, a...))
} }
// Trace logs message if tracing enabled. // Trace logs message if tracing enabled.