简体   繁体   English

如何在Quickfix C ++中将消息记录到文件

[英]How to log messages to file in Quickfix C++

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. 我看了一下Log.h文件,似乎我需要实现从接口继承我自己的日志类以将消息记录到文件中,我只是想知道是否有任何现有的类可用于将消息记录到文件中,我知道是一个ScreenLogFactory,但是我没有将它们打印到屏幕上。

Thank you. 谢谢。

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. 您当然可以实现自己的自定义记录器,但是对于一个简单的情况,已经有一个FIX::FileLogFactory类,您可以使用该类来具有简单的文件记录器。

Also check the logging configuration document. 还要检查日志记录配置文档。

Hope it helps. 希望能帮助到你。 Good Luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM