code: public static void registerLogListener(@NonNull final Context context, @NonNull final DfuLogListener listener) {
  		if (mLogBroadcastReceiver == null) {
  			mLogBroadcastReceiver = new LogBroadcastReceiver();
  
  			final IntentFilter filter = new IntentFilter();
  			filter.addAction(DfuBaseService.BROADCAST_LOG);
  			LocalBroadcastManager.getInstance(context).registerReceiver(mLogBroadcastReceiver, filter);
  		}
  		mLogBroadcastReceiver.setLogListener(listener);
  	}
docs: Registers the {@link DfuLogListener}. Registered listener will receive the log events from the DFU service.
  
  @param context  the application context.
  @param listener the listener to register.