Can I detect my iPhone when thief logout from iCloud in Settings?
You cannot logout iCloud without entering the password if Find My iPhone is enabled. At least, this counts for iOS7.

With versions prior iOS 7 you can wipe the device without having the password.