"While I realize he may go to jail over this, I hope he doesn't," she said. "Having to resign as sheriff, the shame and embarrassment of having a federal felony on his record and the loss of respect of the people of Clay County is a terrible price to pay."
The West Virginia Supreme Court, which owns and maintains the magistrate court computers, discovered the monitoring device two weeks after Slack installed it. Activity on court computers is monitored, and the altered computer was found in an on-site audit.
His ex-wife appeared to hold no bitterness over the action.
"Miles has always enjoyed an excellent reputation in our community," she said. "We were married for a long time, we raised each other's children and I would never wish anything bad to happen to him."
Goodwin said Slack's surreptitious monitoring of his wife's computer was "a serious breach of privacy."
Slack became sheriff in 2012 after serving as deputy sheriff for more than 16 years. He was briefly Clay's chief of police while he was running for sheriff.
He resigned Friday as part of his plea agreement with prosecutors.
He will be sentenced Dec. 19.
Contact writer Cheryl Caswell at cher...@dailymail.com or 304-348-4832.