Programming is mainly logic. It is said that if you have good logical abilities, you can become a good programmer. Logic can be learned. Is there a training / tutorial / book etc.. for logic building ?
You could always go play around with the problems over at Project Euler. They cover a wide range of logic and math topics.
Logic: Second Edition by Wilfrid Hodges is a no-nonsense book on logic. It builds from casual logic (when a sentence is true....) to formal logic. Invaluable.
Product Description If a man supports Arsenal [soccer team] one day and Spurs [soccer team] the next then he is fickle but not necessarily illogical. From this starting point, and assuming no previous knowledge of logic, Wilfrid Hodges takes the reader through the whole gamut of logical expressions in a simple and lively way. Readers who are more mathematically adventurous will find optional sections introducing rather more challenging material.
I think there's a fallacy in your logic:
if you have good logical abilities, you can become a good programmer
It is more true to say:
if you do not have good logical abilities, you cannot become a good programmer
I'd say fundamentally, programming comes down to analytical and problem solving skills, and yes, there are ways to develop and improve yours.
Are you looking specifically for resources about learning/improving "logical reasoning"? Or are you looking for resources to improve analytical skills related to programming?
And just to throw this in, depending on the kind of "logic buildling" you're looking for, you may find value in a variety of exercises. For example, I really enjoy games of Sudoku - pure logic puzzles.