7 # include <fwCore/log/SpyLogger.hpp> 9 #include <boost/filesystem.hpp> 24 std::string logFile =
"fwTest.log";
26 FILE * pFile = fopen(logFile.c_str(),
"w");
29 ::boost::system::error_code err;
30 ::boost::filesystem::path sysTmp = ::boost::filesystem::temp_directory_path(err);
34 logger.addStreamAppender();
39 sysTmp = sysTmp / logFile;
40 logFile = sysTmp.string();
41 logger.addFileAppender(logFile);
48 logger.addFileAppender(logFile);
Implements the SpyLogger.