[Quickfix-users] Logging events
Brought to you by:
orenmnero
From: <nos...@fr...> - 2009-03-26 12:12:50
|
How do i implement LogFactory and Log classes in C# ? I get null pointer exception when try to construct SocketInitiator with my own LogFactory class fixLogFactory = new FixLogFactory(); initiator = new SocketInitiator(sender, storeFactory, settings, fixLogFactory, messageFactory); FixLog fixLog = (FixLog)fixLogFactory.create(); public class FixLogFactory : LogFactory { #region LogFactory Members public Log create() { return new FixLog(); //throw new NotImplementedException(); } public Log create(SessionID __p1) { return new FixLog(); //throw new NotImplementedException(); } #endregion } public class FixLog : Log { public event OnEvent OnEvent; #region Log Members public void clear() { } public void onEvent(string @string) { OnEvent(@string); } public void onIncoming(string @string) { //throw new NotImplementedException(); } public void onOutgoing(string @string) { //throw new NotImplementedException(); } #endregion } |