enabled property

bool get enabled

Backward compatibility: enable/disable logging

Implementation

static bool get enabled => config.enabled;
set enabled (bool value)

Implementation

static set enabled(bool value) {
  config = LoggerConfig(
    enabled: value,
    minLevel: config.minLevel,
    showTimestamp: config.showTimestamp,
    showLevel: config.showLevel,
    showLocation: config.showLocation,
    showStackTrace: config.showStackTrace,
    prettyJson: config.prettyJson,
    maxLength: config.maxLength,
    customHandler: config.customHandler,
  );
}