Merge pull request #105 from phemmer/entry_warning

Add missing `(*Entry) Warning()` function
This commit is contained in:
Simon Eskildsen 2015-01-14 18:30:43 -05:00
commit 2f722357d3
1 changed files with 4 additions and 0 deletions

View File

@ -126,6 +126,10 @@ func (entry *Entry) Warn(args ...interface{}) {
}
}
func (entry *Entry) Warning(args ...interface{}) {
entry.Warn(args...)
}
func (entry *Entry) Error(args ...interface{}) {
if entry.Logger.Level >= ErrorLevel {
entry.log(ErrorLevel, fmt.Sprint(args...))