[vbox-dev] Logging in Custom COM Implementations
adam.pridgen at thecoverofnight.com
Thu Oct 18 10:05:55 PDT 2012
> If your code includes include/Logging.h early (before anything else
> drags in iprt/log.h) then all logging will go to the log group "main".
I went through and moved all of the "Logging.h" includes to the top of
each *.cpp and *.h files, but the classes are still not logging to the
main group. I am creating a debug build. Before, I thought the
framework was creating new groups for each class, but now I understand
I went back and re-read the wiki and the headers, and I replaced the
"LogAlways" function calls with:
LOG_GROUP_MAIN,("VBox.Main.Foo<functionName>: The address of this:
I ensured that the following log-pertinent variables were set during the build:
The following logging variables were set:
The following log files were created:
I was expecting all the messages to appear in any of the files
created, but the only logging message that happens is when the COM
interface gets initialized. I grep'ed through the files and I found
only one instance of the "Foo" logging messages. After the interface
is initialized, none of the other LogIt messages are logged.
Is there anything else that I can try? Thanks for your help.
More information about the vbox-dev