added a simple logger (for debugging purposes)
[simple-launcher] / applet-wrapper.cc
index 22ffab1..5cc997c 100644 (file)
@@ -15,6 +15,7 @@
 // this program; if not, write to the Free Software Foundation, Inc., 51
 // Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
+#include <fstream>
 #include <cairo/cairo.h>
 
 #include <libhildondesktop/libhildondesktop.h>
@@ -40,6 +41,14 @@ extern "C" {
 HD_DEFINE_PLUGIN(SLAWrapper, sla_wrapper, HILDON_DESKTOP_TYPE_HOME_ITEM)
 };
 
+static void __logger(const std::string& what) {
+  std::ofstream log("/tmp/sla.log", std::fstream::app);
+
+  if (log) {
+    log << what << std::endl;
+  }
+}
+
 static void sla_wrapper_init(SLAWrapper *self) {
   GdkColormap *colormap = NULL;