Move write long function to Taint class and rename it
add logic to dump log in hex or not