-
-/** @param file Filename to write log to */
-FileLog::FileLog (boost::filesystem::path file)
- : _file (file)
-{
-
-}
-
-void
-FileLog::do_log (string m)
-{
- FILE* f = fopen_boost (_file, "a");
- if (!f) {
- cout << "(could not log to " << _file.string() << "): " << m << "\n";
- return;
- }
-
- fprintf (f, "%s\n", m.c_str ());
- fclose (f);
-}
-