disableAllOutputs static method

LogError disableAllOutputs({
  1. String logger = 'Main',
})

Disables All output for the specified logger.

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

Returns: A LogError indicating success or failure.

Implementation

static LogError disableAllOutputs({String logger = 'Main'}) {
  return isCriticalMode
      ? LogError(-5, message: 'is in critical mode')
      : loggerManager.disableAllOutputs(logger: logger);
}