summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: aa6c6b7)
raw | patch | inline | side by side (parent: aa6c6b7)
author | mental <mental@users.sourceforge.net> | |
Thu, 10 May 2007 01:18:51 +0000 (01:18 +0000) | ||
committer | mental <mental@users.sourceforge.net> | |
Thu, 10 May 2007 01:18:51 +0000 (01:18 +0000) |
src/debug/logger.cpp | patch | blob | history |
diff --git a/src/debug/logger.cpp b/src/debug/logger.cpp
index 4bd0a3b0868ba6c595dc2865f5e1fa1ea19857dd..2956e068e14d41de9ab238c77246407efa64edad 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"
}
}
+typedef SimpleEvent<Event::CORE> CoreEvent;
+
+class SessionEvent : public CoreEvent {
+public:
+ SessionEvent() : CoreEvent(Util::share_static_string("session")) {
+ _addProperty("inkscape-version", INKSCAPE_VERSION);
+ }
+};
+
}
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);
}
}