diff --git a/src/debug/logger.cpp b/src/debug/logger.cpp
index f425edd47a5152c4d148a686075de7ccace01646..f28d2750bdd7f00d051a40ecef722928dc57a200 100644 (file)
--- a/src/debug/logger.cpp
+++ b/src/debug/logger.cpp
#include <fstream>
#include <vector>
#include <glib/gmessages.h>
+#include "inkscape-version.h"
#include "debug/logger.h"
#include "debug/simple-event.h"
#include "gc-alloc.h"
{ "REFCOUNT", Event::REFCOUNT },
{ "EXTENSION", Event::EXTENSION },
{ "FINALIZERS", Event::FINALIZERS },
+ { "INTERACTION", Event::INTERACTION },
+ { "CONFIGURATION", Event::CONFIGURATION },
{ "OTHER", Event::OTHER },
{ NULL, Event::OTHER }
};
}
}
+typedef SimpleEvent<Event::CORE> CoreEvent;
+
+class SessionEvent : public CoreEvent {
+public:
+ SessionEvent() : CoreEvent(Util::share_static_string("session")) {
+ _addProperty("inkscape-version", Inkscape::version_string);
+ }
+};
+
}
void Logger::init() {
log_stream << "<?xml version=\"1.0\"?>\n";
log_stream.flush();
_enabled = true;
- start<SimpleEvent<Event::CORE> >(Util::share_static_string("session"));
+ start<SessionEvent>();
std::atexit(&do_shutdown);
}
}
tag_stack().push_back(name);
empty_tag = true;
+
+ event.generateChildEvents();
}
void Logger::_skip() {