PDLogConfig
(Appears on: PDConfig)
PDLogConfig serializes log related config in toml/json.
Field | Description |
---|---|
level string | (Optional) Log level. Optional: Defaults to info |
format string | (Optional) Log format. one of json, text, or console. |
disable-timestamp bool | (Optional) Disable automatic timestamps in output. |
file FileLogConfig | (Optional) File log config. |
development bool | (Optional) Development puts the logger in development mode, which changes the behavior of DPanicLevel and takes stacktraces more liberally. |
disable-caller bool | (Optional) DisableCaller stops annotating logs with the calling function’s file name and line number. By default, all logs are annotated. |
disable-stacktrace bool | (Optional) DisableStacktrace completely disables automatic stacktrace capturing. By default, stacktraces are captured for WarnLevel and above logs in development and ErrorLevel and above in production. |
disable-error-verbose bool | (Optional) DisableErrorVerbose stops annotating logs with the full verbose error message. |