Skip to content

Commit

Permalink
[printer] Rename StdErrorAdapter to StderrAdapter
Browse files Browse the repository at this point in the history
Other function - StdoutAdapter is using different naming convention. To avoid confusion rename the StdErrorAdapter to look similar
  • Loading branch information
elgopher committed Jan 21, 2022
1 parent ae3e58f commit 1f8f5f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adapter/printer/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ type Printer interface {
Println(...interface{})
}

// StdErrorAdapter returns a logger.Adapter implementation which prints log messages to stderr using `fmt` package.
func StdErrorAdapter() Adapter {
// StderrAdapter returns a logger.Adapter implementation which prints log messages to stderr using `fmt` package.
func StderrAdapter() Adapter {
return Adapter{Printer: WriterPrinter{os.Stderr}}
}

Expand Down

0 comments on commit 1f8f5f7

Please sign in to comment.