From: mental Date: Thu, 10 May 2007 01:18:51 +0000 (+0000) Subject: log inkscape version X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f3ed0d396aa63d9cd081f5aa2e14c6de86bd0b76;p=inkscape.git log inkscape version --- 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); } }