From f3ed0d396aa63d9cd081f5aa2e14c6de86bd0b76 Mon Sep 17 00:00:00 2001 From: mental Date: Thu, 10 May 2007 01:18:51 +0000 Subject: [PATCH] log inkscape version --- src/debug/logger.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/debug/logger.cpp b/src/debug/logger.cpp index 4bd0a3b08..2956e068e 100644 --- a/src/debug/logger.cpp +++ b/src/debug/logger.cpp @@ -12,6 +12,7 @@ #include #include #include +#include "inkscape_version.h" #include "debug/logger.h" #include "debug/simple-event.h" #include "gc-alloc.h" @@ -127,6 +128,15 @@ static void set_category_mask(bool * const mask, char const *filter) { } } +typedef SimpleEvent CoreEvent; + +class SessionEvent : public CoreEvent { +public: + SessionEvent() : CoreEvent(Util::share_static_string("session")) { + _addProperty("inkscape-version", INKSCAPE_VERSION); + } +}; + } void Logger::init() { @@ -140,7 +150,7 @@ void Logger::init() { log_stream << "\n"; log_stream.flush(); _enabled = true; - start >(Util::share_static_string("session")); + start(); std::atexit(&do_shutdown); } } -- 2.30.2