To enable logging in FireBreath, both for your own messages and the ones FireBreath generates, you need to do the following:
add the following to your PluginConfig.cmake
- regenerate your project using the
open up Factory.cpp in your project. You need to define the following function inside the class definition for PluginFactory:
FireBreath will now log to the specified output. You can add your own log messages, by using the
FBLOG_*macros that can be found in
About log levels
The log levels are defined in
By default the log level is
Debug messages will not be emitted.
If you want to change the log level, you need to define the following inside the class definition for PluginFactory:
On Mac OS X launching a web browser from the GUI will make
stdout, and hence your console log messages, go to
On Windows, LogMethod_Console logs to the system debug console. This can be accessed with a tool such as Sysinternal's Debug View.