levels property

The log levels this processor will handle.

Only logs with levels in this list will be passed to process. The shouldProcess method checks against this list by default.

Defaults to all levels (HealthConnectorLogLevel.values).

Example

// Handle only warnings and errors
const errorProcessor = MyProcessor(
  levels: [
    HealthConnectorLogLevel.warning,
    HealthConnectorLogLevel.error,
  ],
);

Implementation

final List<HealthConnectorLogLevel> levels;