logging for device