logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Chen <ben...@porivo.com>
Subject Re: automatic trace insertion
Date Tue, 18 Dec 2001 16:10:20 GMT
Jim,

Hmmm... this is definitely another option.  I like the separation of debugging logic from
your source code.  I do like using the JDB but it crashes quite often.  I'm worried about
the reliability of JPDA.  Again, I'll have to play around with each option and see which one
fits best.  Thanks for the suggestion!  :-)  -Benson

"Cakalic, James" wrote:

> This article about Jylog -- a JPDA based logging generator -- just appeared
> on JavaWorld. Perhaps it relevant?
>     http://www.javaworld.com/javaworld/jw-12-2001/jw-1214-jylog.html
>
> Jim
>
> > -----Original Message-----
> > From: Paul Glezen [mailto:pglezen@us.ibm.com]
> > Sent: Monday, December 17, 2001 4:25 PM
> > To: Log4J Developers List
> > Subject: Re: automatic trace insertion
> >
> >
> > Hi Benson,
> >
> > It's not as easy as it looks to do "intelligently".  While it is often
> > taught that methods should have a single entry point and exit
> > point, not
> > many programmers adhear to this.  It is not at all uncommon
> > to find return
> > statements in if-blocks and try-catch blocks.  Sometimes the
> > exit logic can
> > get very convoluted.
> >
> > I've always been partial to single exit logic.  I didn't
> > become a fan until
> > trying to insert trace statements, just as you describe, in
> > other people's
> > code.  It can be a nightmare.
> >
> > - Paul
> >
> > Paul Glezen
> > Consulting IT Specialist
> > IBM Software Services for WebSphere
> > 818 539 3321
> >
> >
> > Benson Chen <benson@porivo.com>@porivo.com on 12/17/2001 01:57:15 PM
> >
> > Please respond to "Log4J Developers List"
> > <log4j-dev@jakarta.apache.org>
> >
> > Sent by:  bchen@porivo.com
> >
> >
> > To:   log4j-dev@jakarta.apache.org
> > cc:
> > 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: benson@porivo.com
> > "Measuring end-to-end Web performance"
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:log4j-dev-help@jakarta.apache.org>
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:log4j-dev-help@jakarta.apache.org>
> >
>
> <font size="1">Confidentiality Warning:  This e-mail contains information intended
only for the use of the individual or entity named above.  If the reader of this e-mail is
not the intended recipient or the employee or agent responsible for delivering it to the intended
recipient, any dissemination, publication or copying of this e-mail is strictly prohibited.
The sender does not accept any responsibility for any loss, disruption or damage to your data
or computer system that may occur while using data contained in, or transmitted with, this
e-mail.   If you have received this e-mail in error, please immediately notify us by return
e-mail.  Thank you.

--
Benson Chen
Director of Software Engineering
Porivo Technologies, Inc.
Phone: (919)806-0566x12
E-Mail: benson@porivo.com
"Measuring end-to-end Web performance"




--
To unsubscribe, e-mail:   <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@jakarta.apache.org>


Mime
View raw message