There is an impulse in us to avoid negative thoughts and feelings at all costs. Some, however, dwell within the negativity and let it take them over. Neither approach, I feel, will be effective in the long run, if you want to be happy. It is better to engage our negative thoughts and feelings and invite them in for tea, so to speak.
Once they become familiar to us as aspects of ourselves then we can understand why they are there and resolve the underlying causes. This is the work of living a happy and fulfilling life. I recommend utilising both meditation and writing a daily journal.