I am new to AOP and love the concept! I am in the process of removing my embedded logging messages and replacing them with aspects.
Here's my question: Many of my logging messages consist of specific strings. Sometimes the message consists of just a string (e.g. "Null prodcut ID") and sometimes it's a string coupled with runtime information (e.g. "Search returned more than one match for " + customerID).
In all of the Spring/AOP/logging examples I have seen there is just a simple generic output string that can be applied to all cases. For example:
Is there any way to customize your logging messages with specific strings?
log.debug("Beginning method: " + method.getName());
log.error("Exception in method: " + method.getName() +
"Exception is: " + ex.getMessage());