BDLogger.private constructor

  1. @visibleForTesting
BDLogger.private(
  1. Set<BDLogHandler> _handlers,
  2. StreamController<BDLogError> _errorController, [
  3. int _processingBatchSize = defaultProcessingBatchSize
])

Private constructor used to create the singleton instance of the class. This constructor is marked as @visibleForTesting to allow it to be accessed in tests.

Implementation

@visibleForTesting
BDLogger.private(
  this._handlers,
  this._errorController, [
  this._processingBatchSize = defaultProcessingBatchSize,
]) {
  _registerLogProcessingTimer();
}