Thread: [Quickfix-developers] Backup log files in .net
Brought to you by:
orenmnero
From: George <pap...@gm...> - 2011-05-31 14:40:18
|
Could anyone tell me how to backup the log files in .net |
From: Grant B. <gbi...@co...> - 2011-05-31 15:30:05
|
Build log? Quickfix log? Please be more specific. On Tue, May 31, 2011 at 9:34 AM, George <pap...@gm...> 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... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |
From: George <pap...@gm...> - 2011-05-31 15:50:07
|
George <papasavva2@...> writes: > > 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 > I am using the .net wrapper Basically the log files get larger and larger. I would like the log files to get backup when i look out. There is a backupPath property but i did not find any way to call the backup() function in .net Could anyone tell me if this is possible Below is part of the code for initialization... this.settings = new SessionSettings(marketSettingsFile); this.SubscriberQFApplication = new QFApplication(); this.storeFactory = new FileStoreFactory(this.settings); this.logFactory = new FileLogFactory(logPath + "/" + DateTime.Now.Year + "_" + DateTime.Now.Month + "_" + DateTime.Now.Day); this.messageFactory = new DefaultMessageFactory(); this.socketInitiator = new SocketInitiator(this.SubscriberQFApplication, storeFactory, this.settings, this.logFactory, this.messageFactory); this.socketInitiator.start(); |
From: George <pap...@gm...> - 2011-06-01 07:17:51
|
George <papasavva2@...> writes: > > 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 > Any news on this issue? Please let me know if there is a configuration mechanism for doing this |
From: sevzas <se...@gm...> - 2011-06-01 12:34:49
|
You can call backup() on the QuickFix.Log object. Here's a VB.NET snippet for getting the Session from the Initiator and getting the Log from the Session. Dim S As QuickFix.Session = myInitiator.getSessions(0) Dim L As QuickFix.Log = S.getLog() L.backup() George-187 wrote: > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > George <papasavva2@...> writes: > >> >> 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 >> > > Any news on this issue? Please let me know if there is a configuration > mechanism > for doing this > > > > ------------------------------------------------------------------------------ > 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... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > -- View this message in context: http://old.nabble.com/Backup-log-files-in-.net-tp31741471p31748714.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |
From: Dominik B. <dom...@gm...> - 2011-06-01 13:36:42
|
Here's an example in C# if you work with multiple sessions ArrayList sessions = initiator.getSessions(); { foreach (var session in sessions) { SessionID sessionId = (SessionID)session; Log logFile = Session.lookupSession(sessionId).getLog(); logFile.backup(); } } On Wednesday, June 1, 2011 at 9:17 AM, George wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > George <papasavva2@...> writes: > > > > > 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 > > Any news on this issue? Please let me know if there is a configuration mechanism > for doing this > > > > ------------------------------------------------------------------------------ > 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 |
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 |
From: Eugene <je...@gi...> - 2011-06-09 08:44:32
|
Hello, Dominik Looks like problem exist only for .NET users. File: QuickFix\src\.NET\Log.h Line : 11 ---cut--- void backup() { m_log->clear(); } ---cut--- try to replace with this one: ---cut--- void backup() { m_log->backup(); } ---cut--- Regards, Eugene. On Wed, Jun 1, 2011 at 5:36 PM, Dominik Brack <dom...@gm...>wrote: > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > Here's an example in C# if you work with multiple sessions > > ArrayList sessions = initiator.getSessions(); > { > foreach (var session in sessions) > { > SessionID sessionId = (SessionID)session; > Log logFile = Session.lookupSession(sessionId).getLog(); > logFile.backup(); > } > } > > On Wednesday, June 1, 2011 at 9:17 AM, George wrote: > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > George <papasavva2@...> writes: > > > 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 > > > Any news on this issue? Please let me know if there is a configuration > mechanism > for doing this > > > > > ------------------------------------------------------------------------------ > 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... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > > > > ------------------------------------------------------------------------------ > 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... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > |
From: Dominik B. <dom...@gm...> - 2011-06-09 09:30:53
|
Hi Eugene, You are right - this fixed my issue. Thanks a lot! Have you submitted a bug report yet? Regards, Dominik On Thursday, June 9, 2011 at 10:44 AM, Eugene wrote: > Hello, Dominik > > Looks like problem exist only for .NET users. > > File: QuickFix\src\.NET\Log.h > Line : 11 > ---cut--- > void backup() > { m_log->clear(); } > ---cut--- > > try to replace with this one: > ---cut--- > void backup() > { m_log->backup(); } > ---cut--- > > Regards, Eugene. > On Wed, Jun 1, 2011 at 5:36 PM, Dominik Brack <dom...@gm... (mailto:dom...@gm...)> wrote: > > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > > QuickFIX Support: http://www.quickfixengine.org/services.html > > > > > > Here's an example in C# if you work with multiple sessions > > > > ArrayList sessions = initiator.getSessions(); > > { > > foreach (var session in sessions) > > { > > SessionID sessionId = (SessionID)session; > > Log logFile = Session.lookupSession(sessionId).getLog(); > > logFile.backup(); > > } > > } > > > > > > On Wednesday, June 1, 2011 at 9:17 AM, George wrote: > > > > > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html > > > QuickFIX Support: http://www.quickfixengine.org/services.html > > > > > > George <papasavva2@...> writes: > > > > > > > > > > > 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 > > > > > > Any news on this issue? Please let me know if there is a configuration mechanism > > > for doing this > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > 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 > > > > > > ------------------------------------------------------------------------------ > > 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 > |