Log will log a message at the level given as parameter. Warning: using Log at Panic or Fatal level will not respectively Panic nor Exit. For this behaviour Entry.Panic or Entry.Fatal should be used instead.
(level Level, args ...interface{})
| 303 | // Warning: using Log at Panic or Fatal level will not respectively Panic nor Exit. |
| 304 | // For this behaviour Entry.Panic or Entry.Fatal should be used instead. |
| 305 | func (entry *Entry) Log(level Level, args ...interface{}) { |
| 306 | if entry.Logger.IsLevelEnabled(level) { |
| 307 | entry.log(level, fmt.Sprint(args...)) |
| 308 | } |
| 309 | } |
| 310 | |
| 311 | func (entry *Entry) Trace(args ...interface{}) { |
| 312 | entry.Log(TraceLevel, args...) |