0

I looked at the Log.h file, it seems like I need to implement my own log class inherit from the interface to log messages to file I am just wondering if there is any existing class to use to log messages to file, I know there is a ScreenLogFactory, but I am not printing them onto screen.

Thank you.

Dehli
  • 5,950
  • 5
  • 29
  • 44
cynric4sure
  • 189
  • 1
  • 12

1 Answers1

0

You can certainly implement your own custom logger, but for a simple case there is already a FIX::FileLogFactory class that you can use to have simple file logger.

Also check the logging configuration document.

Hope it helps. Good Luck!

  • Thank you, I never noticed that, I thought that file log class should be in Log.h – cynric4sure Jun 13 '13 at 18:47
  • one more question, in my configuration file I have FileLogPath=E:\... But I am having error finding this key, what might be the problem? – cynric4sure Jun 13 '13 at 18:47
  • @cynric4sure: what key, and where you think you should find it? –  Jun 13 '13 at 19:15
  • FileLogPath, when quickfix parse the configuration file, it said ConfigError. I looked into the call stack found that it was looking for "FileLogPath", but the find(key) returns nothing while I do have "FileLogPath=E:\Path" in my configuration file. – cynric4sure Jun 13 '13 at 19:35
  • @cynric4sure: Then you don't have it, or have it in the wrong place. –  Jun 13 '13 at 19:42
  • I have found out, need use "/" instead of "\" in path – cynric4sure Jun 13 '13 at 20:28