getOutputsEnabled static method

List<String> getOutputsEnabled({
  1. String logger = 'Main',
})

Retrieves the list of enabled outputs for the specified logger.

  • logger: The logger name (defaults to "Main").

Returns: A list of enabled output names, or an empty list if in critical mode.

Implementation

static List<String> getOutputsEnabled({String logger = 'Main'}) {
  return isCriticalMode ? [] : loggerManager.getOutputsActive(logger: logger);
}