Tag Archives: logging

Aspect trace logging in Java (Spring Framework)

An easy way to enable tracing of methods and parameter values in Java Spring is by using AspectJ. A simplified example of my Aspect class to make tracing easy, without any ‘logger.trace’ code in the classes itself: package com.markvandenbergh.test.util; import … Continue reading

Posted in Coding, General, Java, Spring | Tagged , , , , , | Leave a comment

Fast debugging statements

While reading Code Complete 2nd Edition I ran into a chapter which covers defensive programming. Defensive programming includes debugging, but not to any price of course. We don’t want performance of the application to suffer from debugging statements, at least … Continue reading

Posted in Coding, General | Tagged , , , , , , , | Leave a comment