Skip to content

Commit

Permalink
change null writer and formater name to nil
Browse files Browse the repository at this point in the history
  • Loading branch information
xujinzheng committed Mar 19, 2018
1 parent d007f27 commit c9c4739
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion formatter_null.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ type NullFormatter struct {
}

func init() {
RegisterFormatter("null", NewNullFormatter)
RegisterFormatter("nil", NewNullFormatter)
}

func NewNullFormatter(config config.Configuration) (formatter logrus.Formatter, err error) {
Expand Down
2 changes: 1 addition & 1 deletion writer_null.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func init() {
RegisterWriter("null", NewNullWriter)
RegisterWriter("nil", NewNullWriter)
}

type NullWriter struct {
Expand Down

0 comments on commit c9c4739

Please sign in to comment.