This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Logging method call" Watch "Logging method call" New topic
Author

Logging method call

mehdi elaoufir
Greenhorn

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:
<pre>
<code>
class Foo {
public void testMethod(Param1 p1, Param2 p2){
this.outputCurrentMethod();
.
.
.
return;
}
.
.
.
}
</code>
</pre>

The output would be something like this :

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

Parameters list:

p1:value1

p2:value2

Can anybody help me?
thanx a lot

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


<A HREF="mailto:m.elaoufir@caramail.com" rel="nofollow">m.elaoufir@caramail.com</A>
vicky bawge
Ranch Hand

Joined: Sep 04, 2001
Posts: 34
check out Log4J from apache. morever its free
-Vivek
 
Don't get me started about those stupid light bulbs.
 
subject: Logging method call
 
Similar Threads
"replace temp with query" question
Design single method with different input type and different data type
Refreshing Cookie
Using AJAX with Struts 1.2
How to update a data in database from jsp