State:Closed|icon_bug|icon_katana|database:public|Resolution:Not A Bug|BugID:272728|TargetRelease:2.6v1|
Problem summary:
Steps to reproduce:
1. Change plugins/Src/Ops/HelloWorld to include
#include <FnLogging/FnLogging.h>
FnLogSetup("HelloWorldOp")
2. And in the cook method:
if (interface.atRoot())
{
FnLogDebug("######## my DEBUG Hello, Help Me!!!!");
FnLogInfo("######## my INFO Hello, Help Me!!!!");
FnLogWarn("######## my WARN Hello, Help Me!!!!");
FnLogError("######## my ERROR Hello, Help Me!!!!");
...
3. Also change the plugins/Src/Ops/HelloWorld/CMakeLists.txt to include FnLogging:
target_link_libraries(HelloWorldOp
PRIVATE
...
Katana::FnLogging
4. Follow the instructions in plugins/Src/README.md to build but ignoring paths to alembic/openexr/boost.
5. Run Katana with built plugins as resource:
KATANA_RESOURCES=$HOME/MyKatanaResources $KATANA_HOME/katana
6. Add a GenericOp node with opType: HelloWorld connected to a node that creates /root (e.g. CameraCreate)
Expected behaviour:
Expected to see INFO and higher level messages printed on the console or in the katana.log
Actual behaviour:
None of the logged messages appear in the terminal nor in /tmp/katana.log
Workaround:
Calling setHost() for the logging should fix this issue.
Custom plugins can also output messages via standard print statements (e.g. std::cout).
Reproduced versions/platforms:
Customer version/platform:
Not supplied.
We're sorry to hear that
Please tell us why