debugWrapInLogger method

  1. @Deprecated('Debug/dev mode')
IdbFactory debugWrapInLogger({
  1. IdbFactoryLoggerType type = IdbFactoryLoggerType.all,
  2. int? maxLogCount,
})

Quick logger wrapper, useful in unit test.

idbFactory = idbFactory.debugQuickLoggerWrapper()

maxLogCount default to 100

Implementation

@Deprecated('Debug/dev mode')
IdbFactory debugWrapInLogger(
    {IdbFactoryLoggerType type = IdbFactoryLoggerType.all,
    int? maxLogCount}) {
  IdbFactoryLogger.debugMaxLogCount = maxLogCount ?? 100;
  var factory = getIdbFactoryLogger(this, type: type);
  return factory;
}