getIdbFactoryLogger function

IdbFactoryLogger getIdbFactoryLogger(
  1. IdbFactory factory, {
  2. IdbFactoryLoggerType type = IdbFactoryLoggerType.all,
})

Get or create new logger

Implementation

IdbFactoryLogger getIdbFactoryLogger(IdbFactory factory,
    {IdbFactoryLoggerType type = IdbFactoryLoggerType.all}) {
  if (factory is IdbFactoryWrapperImpl) {
    factory.type = type;
    return factory;
  }
  return IdbFactoryWrapperImpl(factory);
}