Keyloggers - domestic issues

Are keyloggers legal in NC as long as they are on a computer or computers in the house that you live in and you do not access them once you no longer live there? and you only used them to prove that your own personal accounts were being broken into against your permission and you never used them to gain access to the other person’s information?

If there is a computer in the home where both parties live, it is owned by both parties and the key logger is legal. The more difficult issue is proving that the other party is the one whose key strokes were logged.