Skip to content

exceptionLogLevel

Package: @autotracer/plugin-babel-flow  ·  Layer: Build  ·  Type: "debug" | "warn" | "error"  ·  Default: "debug"


exceptionLogLevel is a build configuration option passed to @autotracer/plugin-babel-flow in your Babel config. It controls which log level FlowTracer uses for generated exception logs.

This setting matters only when logExceptions is enabled. When logExceptions is false, exceptionLogLevel has no effect.

Read together with logExceptions and tracerName.

Default

If you omit exceptionLogLevel, exception logs use "debug".

Values

  • "debug": lowest-severity exception logging. This is the default.
  • "warn": warning-level exception logging.
  • "error": error-level exception logging.

Usage

javascript
{
  "plugins": [
    ["@autotracer/plugin-babel-flow", { "exceptionLogLevel": "warn" }]
  ]
}

Released under the MIT License.