Do I have to disclose my private life to a stranger? Therefore, confess your sins to one another and pray for one another,
  that you may be healed. The prayer of a righteous person has great
  power as it is working. (James 5:16, ESV)


If I did something sinful between myself and God, like watching pornography, smoking, getting drunk, having sinful thoughts, involving in some sinful activities etc. and I want to stop doing it, do I have to confess my weakness to others and bring shame to myself? It would be fine if the audience are my good friends but if there are new people in the church, I don't think it is appropriate to share my personal life to a stranger. I think personal problems should be shared with the pastor and ask him to pray for us, encourage us and strengthen us. 


Do I have to share my shameful private life and humiliate myself in front of everyone? 
Does this verse imply only to confessing and asking forgiveness to the person that we hurt and sin against?


I would prefer answers from Evangelical or Pentecostal.
Jesus also said:


  “Behold, I am sending you out as sheep in the midst of wolves, so be wise as serpents and innocent as doves. (Matthew 10:16)


and


  Do not give dogs what is sacred; do not throw your pearls to pigs. If you do, they may trample them under their feet, and turn and tear you to pieces. (Matthew 7:6)


Wisdom would suggest that one choose one's counselors wisely.  This would not mean a stranger.

Confessing your sin is also done privately, per Matthew 18:15


  “If your brother sins against you, go and tell him his fault, between you and him alone. If he listens to you, you have gained your brother.