View Single Post
  #2 (permalink)  
Old June 8th, 2009
GregorK GregorK is offline
Phex Developer
 
Join Date: May 9th, 2001
Location: Stuttgart, Germany
Posts: 938
GregorK is on a distinguished road
Default

The concept was changed. But the functionality is still available you just need to hook it into the code by yourself.
Here is some example code blog:

Code:
     File file = new File( "/phex/query.log" );
     File parent = file.getParentFile();
     if ( parent != null )
     {
         parent.mkdirs();
     }
     file.createNewFile();
     fileWriter = new FileWriter( file.getAbsolutePath(), true );
     QueryMsgToWriterMonitor monitor = new QueryMsgToWriterMonitor( fileWriter );
     Servent.getInstance().getMessageService().addMessageSubscriber(
                    QueryMsg.class, monitor );
Also check out QueryMsgToWriterMonitor.java in SVN:
SourceForge.net Repository - [phex] View of /phex/trunk/src/main/java/phex/query/QueryMsgToWriterMonitor.java

Gregor
__________________
Reply With Quote