configure static method

void configure({
  1. ZenLogLevel? level,
  2. bool? rxTracking,
  3. bool? navigationLogging,
  4. bool? routeLogging,
  5. bool? performanceTracking,
  6. bool? strict,
})

Apply custom configuration with fine-grained control

Example:

ZenConfig.configure(
  level: ZenLogLevel.info,
  performanceTracking: true,
  strict: true,
);

Implementation

static void configure({
  ZenLogLevel? level,
  bool? rxTracking,
  bool? navigationLogging,
  bool? routeLogging,
  bool? performanceTracking,
  bool? strict,
}) {
  if (level != null) logLevel = level;
  if (rxTracking != null) enableRxTracking = rxTracking;
  if (navigationLogging != null) enableNavigationLogging = navigationLogging;
  if (routeLogging != null) enableRouteLogging = routeLogging;
  if (performanceTracking != null) {
    enablePerformanceMetrics = performanceTracking;
  }
  if (strict != null) strictMode = strict;
}