Equivalent to logUserEvent but with multiple parameters that must
be logged. This is to ensure consistent message formatting. All
parts are separated with a single coma.
}
}
+void CAM_Application::logStructuredUserEvent( const QString& module,
+ const QString& section,
+ const QString& action,
+ const QString& event,
+ const QString& message )
+{
+ const QStringList mes = (QStringList() << module
+ << section
+ << action
+ << event
+ << message);
+
+ logUserEvent( mes.join( "," ) );
+}
+
/*!
\brief Log given action.
\param action GUI action being logged.
static void logUserEvent( const QString& );
static void logAction( QAction*, const QString& = QString() );
+ static void logStructuredUserEvent( const QString& module,
+ const QString& section,
+ const QString& action,
+ const QString& event,
+ const QString& message = "" );
protected:
virtual SUIT_Study* createNewStudy();