Did you flash your device???if it is stuck on logo and switching off then it has been bricked...which means it went into a infinite boot loop which dosent allow the phone to boot up and stays in logo screen.