If I have logger code in my program and I want to remove the same in production, how will I do it? Why isnt there some conditional compilation feature in Java?
If the switch is introduced in the runtime code, then the logger code stays in the program and a small penalty is there in terms of a check to see if debug mode is ON. The size of my installation is also bigger.