Vincient, This could be exactly what I'm looking for. Aaron Smuts had originally suggested using AspectJ but I was confused as to how to apply it with JUnit. If this does what I think it does, I've struck gold. Thanks for the reference Vincent! -Benson
Vincent Massol wrote: > I am using AspectJ and Log4J in the Jakarta Cactus project to > automatically log entries and exits of public methods that take > parameters. > > The source code of the aspect is available at : > > http://cvs.apache.org/viewcvs/jakarta-cactus/src/framework/share/org/apa > che/cactus/util/log/LogAspect.java?rev=1.3&content-type=text/vnd.viewcvs > -markup > > Hope it helps. > -Vincent > > P.S.: You need to use the ajc compiler instead of javac to compile your > code. Look for "ajc" in : > > http://cvs.apache.org/viewcvs/jakarta-cactus/build/build-servletapi.xml? > rev=1.29&content-type=text/vnd.viewcvs-markup > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Benson > Chen > > Sent: 17 December 2001 21:57 > > To: [EMAIL PROTECTED] > > Subject: automatic trace insertion > > > > Hi all, > > > > I'm interested in automatically inserting log4j trace statements at > the > > beginning of all methods and right before the end of a method (return > > statement or thrown exception). I'm presuming most people have worked > > on projects with extensive class libraries and it would be great if > > there was a class parser that could intelligently insert log4j > > statements automatically. If there isn't anything out there like > that, > > does anyone know of a java class parser that can be used to do this > sort > > of thing? Thoughts or ideas? Thanks! > > > > -- > > Benson Chen > > Director of Software Engineering > > Porivo Technologies, Inc. > > Phone: (919)806-0566x12 > > E-Mail: [EMAIL PROTECTED] > > "Measuring end-to-end Web performance" > > > > > > > > > > -- > > To unsubscribe, e-mail: <mailto:log4j-dev- > > [EMAIL PROTECTED]> > > For additional commands, e-mail: <mailto:log4j-dev- > > [EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- Benson Chen Director of Software Engineering Porivo Technologies, Inc. Phone: (919)806-0566x12 E-Mail: [EMAIL PROTECTED] "Measuring end-to-end Web performance" -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>