[logback-dev] Least-effort logging with bytecode modification

Robert Elliot rob at lidalia.org.uk
Tue Nov 18 10:39:50 CET 2008


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 at gmail.com>
To: "logback developers list" <logback-dev at 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-with-instrumentation.html 
interesting (I wrote it) as it describes how to add entry and exit 
logging statements to existing code at load time.

-- 
  Thorbjørn
_______________________________________________
logback-dev mailing list
logback-dev at qos.ch
http://qos.ch/mailman/listinfo/logback-dev


More information about the logback-dev mailing list