Article View: borland.public.jbuilder.java.api
Article #37Re: method calls logging
From: Victor Ceban
Date: Thu, 20 Jan 2005 15:13
Date: Thu, 20 Jan 2005 15:13
47 lines
2371 bytes
2371 bytes
let me give you some more info on my problem. Here is what we have Class foo method doThis methid doThat What we would like is for the app to put info anywhere (console is an option) that would show when it entered methods and left them. Example 1/1/2005 Class foo, method doThis Enter 1/1/2005 Class foo, method doThis Exit 1/1/2005 Class foo, method doThat Enter 1/1/2005 Class foo, method doThat Exit It would be nice to not have to set it up in every method and class. and as you said log4j can do this. Any examples you can point me to ? Thank you. Victor "Paul Nichols (TeamB)" <paul@computer-logic.net> wrote in message news:41ee7ae2$1@newsgroups.borland.com... > > "Victor Ceban" <vceban@eei1.com> wrote in message > news:41ee6b3b$1@newsgroups.borland.com... >> Both this solutions require code to be altered (all methods) to show the >> debugging information. What I was looking for is more of an > adapter/Listener >> that logs when my application enters a method in any class and leaves >> that >> method in that class. Any suggestions ? >> >> Victor > Neither of them will require you to redo your methods. If you opt for the > log4j solution, only the startup class will need to include it. The second > method, only requires you to start Tomcat with the switch. It works on the > same principle of java -debug > >
Technical Details
Message-ID:
<41efca2f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41ed63d6$1@newsgroups.borland.com> <41edc04c@newsgroups.borland.com> <41ee6b3b$1@newsgroups.borland.com> <41ee7ae2$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1089d0,a7b8d4ffc2d2f8a6 X-Google-Attributes: gid1089d0,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Victor Ceban" <vceban@eei1.com> Newsgroups: borland.public.jbuilder.java.api References: <41ed63d6$1@newsgroups.borland.com> <41edc04c@newsgroups.borland.com> <41ee6b3b$1@newsgroups.borland.com> <41ee7ae2$1@newsgroups.borland.com> Subject: Re: method calls logging Date: Thu, 20 Jan 2005 10:13:59 -0500 Lines: 49 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 65.207.44.48 Message-ID: <41efca2f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1106233903 65.207.44.48 (20 Jan 2005 07:11:43 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!newsprint.newsread.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail