enableConsoleOutput static method

LogError enableConsoleOutput({
  1. String logger = 'Main',
  2. bool exclusive = false,
})

Enables console output for the specified logger.

  • logger: The logger name (defaults to "Main").
  • exclusive: If true, disables other outputs.

Returns: A LogError indicating success or failure.

Implementation

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