In the package, I have found references to Qt, but nothing to wxWidgets.
What is the best way to integrate log4cplus in a wxWidgets GUI program? Do you have references to projects that successfully use both libraries at the same time?
In the package, I have found references to Qt, but nothing to wxWidgets.
Log4cplus references Qt because it has Qt appenders that forward the logging to Qt debugging facilities. There is no more integration of Qt to log4cplus than that.
What is the best way to integrate log4cplus in a wxWidgets GUI program? Do you have references to projects that successfully use both libraries at the same time?
I do not have any such examples. I do not see any problem with this combination of libraries.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Many thanks for the quick answer! Since you are so kind, could you please suggest how can I redirect the output of a log4cplus to a wxTxtCtrl in a flavor similar to this code snippets?
On your first post I took a look at wxWidgets documentation and I thought I could add an appender, similar to the exiting Qt appenders, that would be using functions like wxLogError(), wxLogMessage(), wxLogWarning(), etc.
What you are describing above is slightly different. I suggest that you take a look at, say, consoleappender.cxx or nullappender.cxx to see how to implement a simple appender that wraps the wxTextCtrl yourself.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Log4cplus references Qt because it has Qt appenders that forward the logging to Qt debugging facilities. There is no more integration of Qt to log4cplus than that.
I do not have any such examples. I do not see any problem with this combination of libraries.
Many thanks for the quick answer! Since you are so kind, could you please suggest how can I redirect the output of a log4cplus to a wxTxtCtrl in a flavor similar to this code snippets?
Last edit: Václav Haisman 2013-10-15
On your first post I took a look at wxWidgets documentation and I thought I could add an appender, similar to the exiting Qt appenders, that would be using functions like
wxLogError()
,wxLogMessage()
,wxLogWarning()
, etc.What you are describing above is slightly different. I suggest that you take a look at, say,
consoleappender.cxx
ornullappender.cxx
to see how to implement a simple appender that wraps thewxTextCtrl
yourself.