public static void updateLogOptions ( LogOptions logOptions ) { LoggerSetup oldLoggerSetup = RxBleLog . loggerSetup ; LoggerSetup newLoggerSetup = oldLoggerSetup . merge ( logOptions ) ; d ( "Received new options (%s) and merged with old setup: %s. New setup: %s" , logOptions , oldLoggerSetup , newLoggerSetup ) ; RxBleLog . loggerSetup = newLoggerSetup ; }
Method to update current logger setup with new LogOptions . Only set options will be updated . Options that were not set or set to null on the LogOptions will not update the current setup leaving the previous values untouched .