Skip to content

Commit

Permalink
Add Plainf method to Logger for formatted logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitpaulk committed May 20, 2024
1 parent 2af0073 commit 39db270
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ func (l *Logger) Debugln(msg string) {
}
}

func (l *Logger) Plainf(fstring string, args ...interface{}) {
l.logger.Printf(fstring, args...)
}

func (l *Logger) Plainln(msg string) {
lines := strings.Split(msg, "\n")

Expand Down

0 comments on commit 39db270

Please sign in to comment.