Index: trunk/ippToPsps/src/Logger.c
===================================================================
--- trunk/ippToPsps/src/Logger.c	(revision 31032)
+++ trunk/ippToPsps/src/Logger.c	(revision 31036)
@@ -40,4 +40,6 @@
 static void print(void* this, const int8_t typeInt, const char* class, const char* fmt, ...) {
 
+    Logger* logger = (Logger*)this;
+
     va_list args;
     va_start(args, fmt);
@@ -55,4 +57,5 @@
             break;
         case MSG_DEBUG:
+            if (!logger->showDebug) return;
             sprintf(typeStr, "DEBUG");
             break;
@@ -70,7 +73,6 @@
         sprintf(msg_fmt, "%s", fmt);
     else
-        sprintf(msg_fmt, "%19s | %6s | %15s | %s ", timeStr, typeStr, class,  fmt);
+        sprintf(msg_fmt, "%18s | %6s | %15s | %s ", timeStr, typeStr, class,  fmt);
 
-    Logger* logger = (Logger*)this;
 
     // write either to file or stdout
@@ -83,22 +85,29 @@
 
   Returns a new Logger object.
+  
+  path      - path to file where log should be saved, otherwise stdout is used
+  showDebug - show debug messages or not 
   */
-Logger* new_Logger(const char* path) {
-
+Logger* new_Logger(const char* path, const int8_t showDebug) {
 
     Logger* this = (Logger*)calloc(1, sizeof(Logger));
 
     this->file = NULL;
+    this->showDebug = showDebug;
     gettimeofday(&this->startTime, 0);
 
     // open a file to write to
-    if (path != NULL) {
-
-        this->file = fopen(path, "w+");
-        if (this->file == NULL) 
-            print(this, MSG_ERROR, "Logger", "Cannot open file for writing here '%s'\n", path);
-    }
+    if (path != NULL) this->file = fopen(path, "w+");
 
     print(this, MSG_DEBUG, "Logger", "Constructor\n");
+    print(this, MSG_INFO, "Logger", "Starting timer\n");
+
+    if (path != NULL) { 
+
+        if (this->file == NULL)
+            print(this, MSG_ERROR, "Logger", "Cannot open file for writing here '%s'\n", path);
+        else
+            printf("**** Saving log to '%s'\n", path);
+    }
 
     // method pointers
