Hi Jason,
I don't think that log4j is the right tool for this. You would need to add a log
statement at the beginning and end of each method. It could be done, yes, but I would
not recommend it, unless of course you have these statements in the code already. Even
then, having a log method at the beginning and end of each method is costly in terms
of performance.
You want a tool that does the analysis, spits some useful output without being
intrusive.
You probably want to look at code that automates the process. For example, see
www.aspectj.org. I am sure there are other tools. I just don't know them. Cheers, Ceki
At 18:44 11.06.2001 -0400, Jason van Zyl wrote:
>Hi,
>
>I was wondering if anyone has ever thought of trying to create
>sequence diagrams from a running program using logging information.
>If it would even be possible.
>
>I am currently converting Turbine over to use log4j in conjunction
>with some other refactoring and I thought it would be very cool
>if a developer performed an action in Turbine and from logging
>output create XMI for a sequence diagram.
>
>I am using the debug features in log4j to trace the new
>paths that are being created by the refactoring but it would
>be very powerful I think to be able to see this diagramtically.
>
>Just curious. The idea popped in my head so I figured I'd
>share it. Maybe it's already been done, if so I want to
>know how! :-)
>
>--
>
>jvz.
>
>http://tambora.zenplex.org
>http://jakarta.apache.org/turbine
>http://jakarta.apache.org/velocity
>http://jakarta.apache.org/alexandria
>http://jakarta.apache.org/commons
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
--
Ceki Gülcü
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]