Skip to content

Commit

Permalink
Finished rename of entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
eliveikis committed Jun 2, 2018
1 parent 042a56f commit 3d30087
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type ChainEntry struct {
}

// Info logs an entry with INFO level.
func (e entry) Write() {
func (e ChainEntry) Write() {
if e.disabled {
return
}
Expand Down
12 changes: 6 additions & 6 deletions entry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,45 +138,45 @@ func TestEntryFields(t *testing.T) {
level uint8
disabled uint8
levelString string
entryFunc func(*Logger) entry
entryFunc func(*Logger) ChainEntry
}{
{
level: INFO,
disabled: DEBUG,
levelString: "info",
entryFunc: func(l *Logger) entry {
entryFunc: func(l *Logger) ChainEntry {
return l.InfoWith("hello")
},
},
{
level: DEBUG,
disabled: INFO,
levelString: "debug",
entryFunc: func(l *Logger) entry {
entryFunc: func(l *Logger) ChainEntry {
return l.DebugWith("hello")
},
},
{
level: WARN,
disabled: ERROR,
levelString: "warn",
entryFunc: func(l *Logger) entry {
entryFunc: func(l *Logger) ChainEntry {
return l.WarnWith("hello")
},
},
{
level: ERROR,
disabled: WARN,
levelString: "error",
entryFunc: func(l *Logger) entry {
entryFunc: func(l *Logger) ChainEntry {
return l.ErrorWith("hello")
},
},
{
level: FATAL,
disabled: ERROR,
levelString: "fatal",
entryFunc: func(l *Logger) entry {
entryFunc: func(l *Logger) ChainEntry {
return l.FatalWith("hello")
},
},
Expand Down

0 comments on commit 3d30087

Please sign in to comment.