Debug logs a message at level Debug on the standard logger.
(msg string, args ...interface{})
| 132 | |
| 133 | // Debug logs a message at level Debug on the standard logger. |
| 134 | func (logger *Logger) Debug(msg string, args ...interface{}) { |
| 135 | if logger.Logger.IsLevelEnabled(logrus.DebugLevel) { |
| 136 | if len(args)%2 != 0 { |
| 137 | root.Error(errCtx) |
| 138 | return |
| 139 | } |
| 140 | logger.WithFields(getFields(args...)).Debug(msg) |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | // Print logs a message at level Info on the standard logger. |
| 145 | func (logger *Logger) Print(msg string, args ...interface{}) { |