Sure. Log4j is far better than bult in reporting mechanism. See some fetures here: http://www.jajakarta.org/log4j/jakarta-log4j-1.1.3/docs/FAQ.html#features
In particular I've integrated with JBookTrader mainly because it helps me to debug my new strategies. All log.DEBUG outputs I write can be redirected to console (if I'm using eclipse) or to a log files, even they can be sent by e-mail. And I can change its behaviour on real-time without closing my JBooktrader instance. When the strategy is fixed I can change log4j verbose level and I won't see this debug sentences anymore. Anyway I've added log4j support in a non-destructive way. I mean, I've created EventReportLog4j and StrategyReportLog4j that extends EventReport and StrategyReport, so if a user wants to use log4j features he/she only have to instantiate new logger in startup.JBookTrader constructor, just like this: Dispatcher.getInstance().setReporter(new EventReportLog4j()); Besides I've also refactored class StrategyReportManager to add multiple reporters support. Make sense to have multiple listeners to report an operation, for example I've implemented two of them (Log4J for logging and debug and Database for statistics) Cheers, Victor On Wed, Dec 29, 2010 at 11:02 PM, Eugene Kononov <[email protected]>wrote: > Can you specify the kind of changes that you are planning? There is already > a logging/reporting mechanism built in the framewoek, and it works pretty > much like log4j. > > > > On Wed, Dec 29, 2010 at 4:29 AM, Victor Martin < > [email protected]> wrote: > >> Hi, >> >> I'm doing some minor changes on JBookTrader platform in order to extend >> its reporting features. For my needs I'd like to integrate a logging >> framework (log4j) and I'd like to ask you guys if it fits in JBookTrader >> roadmap. If it's the case I'll be glad to contribute with my code. >> >> Thank you, >> Victor >> >> -- >> You received this message because you are subscribed to the Google Groups >> "JBookTrader" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<jbooktrader%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/jbooktrader?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "JBookTrader" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<jbooktrader%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/jbooktrader?hl=en. > -- You received this message because you are subscribed to the Google Groups "JBookTrader" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jbooktrader?hl=en.
