It's not a secret anymore!
The moose likes Java in General and the fly likes Logging method call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Logging method call" Watch "Logging method call" New topic

Logging method call

mehdi elaoufir

Joined: Oct 17, 2001
Posts: 2
Hi everybody!
To debug a java program, i want to log the current running method by doing something like this:
class Foo {
public void testMethod(Param1 p1, Param2 p2){

The output would be something like this :

Current Method: Foo.testMethod(Param1 p1, Param2 p2)

Parameters list:



Can anybody help me?
thanx a lot

[This message has been edited by mehdi elaoufir (edited October 19, 2001).]

<A HREF="" rel="nofollow"></A>
vicky bawge
Ranch Hand

Joined: Sep 04, 2001
Posts: 34
check out Log4J from apache. morever its free
I agree. Here's the link:
subject: Logging method call
jQuery in Action, 3rd edition