added device logging and log creation