HybridPrinter constructor

HybridPrinter(
  1. LogPrinter realPrinter, {
  2. LogPrinter? debug,
  3. LogPrinter? trace,
  4. @Deprecated('[verbose] is being deprecated in favor of [trace].') LogPrinter? verbose,
  5. LogPrinter? fatal,
  6. @Deprecated('[wtf] is being deprecated in favor of [fatal].') LogPrinter? wtf,
  7. LogPrinter? info,
  8. LogPrinter? warning,
  9. LogPrinter? error,
})

Implementation

HybridPrinter(
  LogPrinter realPrinter, {
  LogPrinter? debug,
  LogPrinter? trace,
  @Deprecated('[verbose] is being deprecated in favor of [trace].')
  LogPrinter? verbose,
  LogPrinter? fatal,
  @Deprecated('[wtf] is being deprecated in favor of [fatal].')
  LogPrinter? wtf,
  LogPrinter? info,
  LogPrinter? warning,
  LogPrinter? error,
}) : _printerMap = {
        Level.debug: debug ?? realPrinter,
        Level.trace: trace ?? verbose ?? realPrinter,
        Level.fatal: fatal ?? wtf ?? realPrinter,
        Level.info: info ?? realPrinter,
        Level.warning: warning ?? realPrinter,
        Level.error: error ?? realPrinter,
      };