logln message with Sprintln
(lvl zapcore.Level, fmtArgs []interface{}, context []interface{})
| 358 | |
| 359 | // logln message with Sprintln |
| 360 | func (s *SugaredLogger) logln(lvl zapcore.Level, fmtArgs []interface{}, context []interface{}) { |
| 361 | if lvl < DPanicLevel && !s.base.Core().Enabled(lvl) { |
| 362 | return |
| 363 | } |
| 364 | |
| 365 | msg := getMessageln(fmtArgs) |
| 366 | if ce := s.base.Check(lvl, msg); ce != nil { |
| 367 | ce.Write(s.sweetenFields(context)...) |
| 368 | } |
| 369 | } |
| 370 | |
| 371 | // getMessage format with Sprint, Sprintf, or neither. |
| 372 | func getMessage(template string, fmtArgs []interface{}) string { |
no test coverage detected