astream.write is for communications with f.e. a mobile or a b4j program (usually used in WiFi or BlueTooth enabled boards) but log is for sending information in the B4R IDE logs or the connected external logger (Erel's implementation) through the USB and it is intented for all boards even if they are not WiFi and BT enabled.