
You should have a look at the slf4j extensions project first. There is something in development there. Robert Elliot wrote:
I have an AspectJ project I'm working on to add trace logging via SLF4J on method & constructor entry & exit & variable change. I'll put it up as an enhancement JIRA once I've done a little more work on it.
Rob
----- Original Message ----- From: "Thorbjørn Ravn Andersen" <thunderaxiom@gmail.com> To: "logback developers list" <logback-dev@qos.ch> Sent: Saturday, 26 July, 2008 8:50:07 AM GMT +00:00 GMT Britain, Ireland, Portugal Subject: Re: [logback-dev] Least-effort logging with bytecode modification
Ramon Nogueira skrev den 26-07-2008 05:01:
I thought of implementing this with AspectJ but its probably easier to just use ASM directly for such a simple case.
Any ideas/suggestions/precedents?
You might find http://today.java.net/pub/a/today/2008/04/24/add-logging-at-class-load-time-... interesting (I wrote it) as it describes how to add entry and exit logging statements to existing code at load time.