1) Play brain games-:Some of the brain games like sudoko, chess, mathematical games etc will help a person to think more and also this thinking will help to increase logical skill of a person. If we play more sudoko game then we will find it very easy to play after playing alot it is because our logic is increasing. Some of the mathematical teasing calculation games also provide a great platform to increase your logical skills. Puzzle games is also a part of the brain games and has big role in developing humans thinking skill.
2) Solve maths and code programs-:Computer programmers loved to code new programs. Creating different kind of logical program will help our brain to take some exercise. Creating a software or program based on numerology, creating hard programs based on our day to day life etc will boost your logic. Programming languages like C, C++ are good practising different programs. And also solving mathematical problems that is integration, differenciation, mathematical problems based on DMAS rule etc will help you to increase logical thinking.
3) Develop an idea searching attitude-:That is you need to develop a good thinking. If you are seeing a new software which is designed by someone else, you need to think about the programming logic behind it. For example you are seeing a word counter, then you need to think how the word is counting in this software. With this basic you need to program a small word counting program(I mean not software) with C or C++. In this way it is possible to increase your program developing skills.
This are some of the possible ways in which one can boost his logical skills. Generally programmers, hackers(security researchers), web designers will always wished to increase their logic for developing a better computer experience. It is very fun to do coding. All the best.