Skip to content

Commit

Permalink
WIP: Check -> Entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua T Corbin committed Dec 9, 2016
1 parent eb03371 commit 7fccf5e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (log *logger) With(fields ...Field) Logger {
}
}

func (log *logger) Check(lvl Level, msg string) *CheckedMessage {
func (log *logger) Check(lvl Level, msg string) *Entry {
ent := Entry{
Time: time.Now().UTC(),
Level: lvl,
Expand All @@ -120,7 +120,8 @@ func (log *logger) Check(lvl Level, msg string) *CheckedMessage {
return nil
}
}
return NewCheckedMessage(log, ent.Level, ent.Message)
ent.fac = log.fac
return &ent
}

func (log *logger) Debug(msg string, fields ...Field) {
Expand Down

0 comments on commit 7fccf5e

Please sign in to comment.