Panic constructs a message with the provided arguments and panics. Spaces are added between arguments when neither is a string.
(args ...interface{})
| 177 | // Panic constructs a message with the provided arguments and panics. |
| 178 | // Spaces are added between arguments when neither is a string. |
| 179 | func (s *SugaredLogger) Panic(args ...interface{}) { |
| 180 | s.log(PanicLevel, "", args, nil) |
| 181 | } |
| 182 | |
| 183 | // Fatal constructs a message with the provided arguments and calls os.Exit. |
| 184 | // Spaces are added between arguments when neither is a string. |