Re: [Quickfix-developers] Backup log files in .net
Brought to you by:
orenmnero
From: Dominik B. <dom...@gm...> - 2011-06-06 09:55:23
|
Hi all, I just realized the C# code sample I've posted to backup log files (*.messages.current.log) does not actually work. The files are flushed but the old data is not moved to the path specified in FileLogBackupPath. Configuration file [DEFAULT] FileStorePath=D:\Log\QuickFIX\Store\ FileLogPath=D:\Log\QuickFIX\ FileLogBackupPath=D:\Log\QuickFIX\Backup\ Code to backup data ArrayList sessions = initiator.getSessions(); foreach (var session in sessions) { SessionID sessionId = (SessionID)session; Log logFile = Session.lookupSession(sessionId).getLog(); logFile.backup(); } Code to setup/start initiator SessionSettings settings = new SessionSettings(this.configFile); FileStoreFactory storeFactory = new FileStoreFactory(settings); FileLogFactory fileLogFactory = new FileLogFactory(settings); MessageFactory messageFactory = new DefaultMessageFactory(); initiator = new ThreadedSocketInitiator(messageHandler, storeFactory, settings, fileLogFactory, messageFactory); initiator.start(); Can anyone reproduce this behavior or am I missing something here? I use QuickFIX 1.13.3. Thanks. On Tuesday, May 31, 2011 at 4:34 PM, George wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Could anyone tell me how to backup the log files in .net > > > ------------------------------------------------------------------------------ > Simplify data backup and recovery for your virtual environment with vRanger. > Installation's a snap, and flexible recovery options mean your data is safe, > secure and there when you need it. Data protection magic? > Nope - It's vRanger. Get your free trial download today. > http://p.sf.net/sfu/quest-sfdev2dev > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... (mailto:Qui...@li...) > https://lists.sourceforge.net/lists/listinfo/quickfix-developers |