seperated detection logging and device logging