The 21-year-old was given the role after the Scottish Professional Football League gave the former Rangers player the green light to remain at the administration-hit club.
Locke admits it was a dilemma choosing the skipper, with the likes of Jamie Hamill, Ryan Stevenson and Jamie Macdonald all in with a shout for the role.
"It was a tough decision as the more experienced players have all made huge sacrifices over the summer and showed me the type of commitment I want here," Locke said.
"I feel Danny is the right man for the job. He has a lot of experience for someone so young, is a good talker and is a quiet lad off the pitch as well which is something you're looking for in your captain.
"It is a big responsibility for him but he has all the right credentials as far as I am concerned.
"He is a winner, commands respect in the dressing room, which is a big plus, and knows what the club is all about.
"He has made the same sacrifices as Jamie Hamill, Ryan Stevenson and Jamie Macdonald and as I said, I do feel he is the right man for the job.
"Hopefully he can be the leader of a successful team this season."
Wilson told the club's official website: "It is obviously a real honour to
captain a club of this stature and I was delighted to accept the offer.
"Heart of Midlothian Football Club is a footballing institution and it is a
real privilege to be given this responsibility."