Added logging option to code

I've added logging option to the code, it works like a charm. I had to put 0.2sec sleep in order to ensure data safety, otherwise data gets scrambled (same values on different nodes)

example.log

INFO:root:2A,000,0255,0001,0039,0249,073
INFO:root:20,000,0255,0001,0039,0249,073
INFO:root: 2,000,0255,0001,0039,0249,073
INFO:root:20,000,0255,0001,0039,0249,073
INFO:root:20,001,0255,0003,0146,0162,016
INFO:root:22,001,0255,0003,0146,0162,016
INFO:root:25,001,0255,0003,0146,0162,016
INFO:root: 7,001,0255,0003,0146,0162,016
INFO:root: 6,001,0255,0003,0146,0162,016
INFO:root: 8,001,0255,0003,0146,0162,016
INFO:root:27,001,0255,0003,0146,0162,016
INFO:root: 2,001,0255,0003,0146,0162,016
INFO:root:26,001,0255,0003,0146,0162,016
INFO:root:21,001,0255,0003,0146,0162,016
INFO:root: 3,001,0255,0003,0146,0162,016
INFO:root:23,001,0255,0003,0146,0162,016
INFO:root:1F,001,0255,0003,0146,0162,016
INFO:root:20,002,0255,0005,0032,0110,155
INFO:root:22,002,0255,0005,0032,0110,155
.....continues