🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #36

Re: method calls logging

#36
From: Victor Ceban
Date: Thu, 20 Jan 2005 15:08
28 lines
2271 bytes
Thank you.
I read all documentation files and still unsure how to do it ;-(
Here is the output I'm looking for:
01/13 10:57:37 info METHOD ENTER SimpleServlet 7126423
   doSomething 1101/13 10:57:37 info METHOD EXIT SimpleServlet 7126423
   doSomething  25 0The only part in the documentation I found close to this 
is  Nested Diagnostic Context. Is that what you meant ? If you have a 
second can you drop me a few lines of code that woul do this ?Vic

"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: <41efc8d4@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <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:08:11 -0500
Lines: 30
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: <41efc8d4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106233556 65.207.44.48 (20 Jan 2005 07:05:56 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail