Development puts the logger in development mode, which makes DPanic-level logs panic instead of simply logging an error.
()
| 81 | // Development puts the logger in development mode, which makes DPanic-level |
| 82 | // logs panic instead of simply logging an error. |
| 83 | func Development() Option { |
| 84 | return optionFunc(func(log *Logger) { |
| 85 | log.development = true |
| 86 | }) |
| 87 | } |
| 88 | |
| 89 | // AddCaller configures the Logger to annotate each message with the filename, |
| 90 | // line number, and function name of zap's caller. See also WithCaller. |