You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to figure out how to log state transitions to a file, preferably using fstream. I see that there are logging classes that can log to streams, but I don't know exactly how to implement that. I'm able to get a logger that prints to std::cout, but I need to pipe it to a file instead. Is there an example somewhere on how to do this?
The text was updated successfully, but these errors were encountered:
What I want to do is something like this uscxml::Logger mylogger = std::make_shared(new uscxml::StdOutLogger)
except I will replace StdOutLogger with my own custom implementation of a logger. But I'm getting the following error:
In file included from /usr/local/include/uscxml/interpreter/StdOutLogger.h:23:0,
from ../test/test_uscxml.cpp:41:
/usr/local/include/uscxml/interpreter/LoggingImpl.h:23:10: fatal error: uscxml/config.h: No such file or directory
#include "uscxml/config.h"
^~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
This happens when my code has #include "uscxml/interpreter/StdOutLogger.h".
It looks like config.h exists in my build tree but not the install tree. Is there a build flag I'm missing?
I'm trying to figure out how to log state transitions to a file, preferably using fstream. I see that there are logging classes that can log to streams, but I don't know exactly how to implement that. I'm able to get a logger that prints to std::cout, but I need to pipe it to a file instead. Is there an example somewhere on how to do this?
The text was updated successfully, but these errors were encountered: