1 // logger.hxx - log properties.
2 // Written by David Megginson, started 2002.
4 // This file is in the Public Domain, and comes with no warranty.
10 # error This library requires C++
20 #include <simgear/compiler.h>
21 #include <simgear/debug/logstream.hxx>
22 #include <simgear/structure/exception.hxx>
23 #include <simgear/structure/subsystem_mgr.hxx>
24 #include <simgear/props/props.hxx>
27 * Log any property values to any number of CSV files.
29 class FGLogger : public SGSubsystem
36 // Implementation of SGSubsystem
38 virtual void reinit ();
40 virtual void unbind ();
41 virtual void update (double dt);
46 * A single instance of a log file (the logger can contain many).
51 std::vector<SGPropertyNode_ptr> nodes;
52 std::ostream * output;
58 std::vector<Log> _logs;
62 #endif // __LOGGER_HXX