writing log method, send data to /tmp/openmining-{}
Used log_it to generate log file