 |
Can I make use of aspects and AspectJ to generate the information needed for the sequence diagram?
Yes, the use of aspects is the easiest way to get the log file data needed to generate sequence diagrams automatically.
I don't use aspects. Do I have to add logging statements to all methods in my source code?
No, you don't have to and you shouldn't. Add logging statements to key methods that represent the execution of business logic. Add it to the methods you would like to see in a sequence diagram.
Does adding log statements to methods impact the performance of the application?
You need to be careful about how you add logging statements to your method. You always have to add an if-statement to the logging statement:
if (Logger.isLoggingEnabled) Logger.log("Order", "getTotal", "Begin");
If you have the if-statement only in the Logger.log() method then you increase the frequency of garbage collection because you create String over and over again and you don't want to do that in production.
For more information see chapter 10 of the reference manual.
Can LogSequencer read any kind of log file?
If your log file contains the minimum information needed to generate a sequence diagram then you can implement the LogParser to read your log file. If you are not sure about your log file or you need help implementing the LogParser then please send a part of your log file to support@LogSequencer.com.
|
|