Index: /trunk/Mars/fact/analysis/callisto.C
===================================================================
--- /trunk/Mars/fact/analysis/callisto.C	(revision 17031)
+++ /trunk/Mars/fact/analysis/callisto.C	(revision 17032)
@@ -1,2 +1,4 @@
+#include "MLogManip.h"
+
 int callisto(const char *seqfile="seq/2012/01/23/20120123_023.seq", const char *outpath = "output", bool use_delays=true)
 {
@@ -65,5 +67,5 @@
     if (map && gSystem->AccessPathName(map, kFileExists))
     {
-        gLog << "ERROR - Cannot access mapping file '" << map << "'" << endl;
+        gLog << err << "ERROR - Cannot access mapping file '" << map << "'" << endl;
         return 1;
     }
@@ -73,5 +75,5 @@
     if (!seq.IsValid())
     {
-        gLog << "ERROR - Sequence '" << seqfile << "' invalid!" << endl;
+        gLog << err << "ERROR - Sequence '" << seqfile << "' invalid!" << endl;
         return 2;
     }
@@ -80,5 +82,5 @@
 
     gLog.Separator("Callisto");
-    gLog << "Calibrate data of sequence '" << seq.GetFileName() << "'" << endl;
+    gLog << all << "Calibrate data of sequence '" << seq.GetFileName() << "'" << endl;
     gLog << endl;
 
@@ -93,14 +95,14 @@
     if (!drs.IsValid())
     {
-        gLog << "ERROR - DRS sequence invalid!" << endl;
+        gLog << err << "ERROR - DRS sequence invalid!" << endl;
         return 3;
     }
 
-    gLog << "DRS sequence file: " << drsname.str() << '\n' << endl;
+    gLog << all << "DRS sequence file: " << drsname.str() << '\n' << endl;
 
     TString drsfile = seq.GetFileName(0, MSequence::kRawDrs);
     if (drsfile.IsNull())
     {
-        cout << "No DRS file available in sequence." << endl;
+        gLog << err << "No DRS file available in sequence." << endl;
         return 4;
     }
@@ -111,4 +113,5 @@
     TString calfile = seq.GetFileName(0, MSequence::kFitsCal);
 
+    gLog << all;
     gLog << "DRS calib     300: " << drsfile << '\n';
     gLog << "DRS calib    1024: " << drs1024 << "\n\n";
@@ -122,4 +125,5 @@
         return 6;
 
+    gLog << all;
     gLog << "Time calibration : " << timfile << '\n';
     gLog << "Pedestal     file: " << pedfile << '\n';
@@ -131,5 +135,5 @@
     if (seq.GetRuns(iter, MSequence::kFitsDat)<=0)
     {
-        gLog << "ERROR - Sequence valid but without files." << endl;
+        gLog << err << "ERROR - Sequence valid but without files." << endl;
         return 7;
     }
@@ -143,5 +147,5 @@
     if (arrt.Read()<=0)
     {
-        cout << "ERROR - Reading LP template from " << lp_template << endl;
+        gLog << err << "ERROR - Reading LP template from " << lp_template << endl;
         return 100;
     }
@@ -150,5 +154,5 @@
     if (!lpref)
     {
-        cout << "ERROR - LP Template not found in " << lp_template << endl;
+        gLog << err << "ERROR - LP Template not found in " << lp_template << endl;
         return 101;
     }
@@ -158,5 +162,5 @@
     if (!gain)
     {
-        cout << "ERROR - Gain not found in " << lp_template << endl;
+        gLog << err << "ERROR - Gain not found in " << lp_template << endl;
         return 101;
     }
@@ -166,5 +170,5 @@
     if (arrp.Read()<=0)
     {
-        cout << "ERROR - Reading Pulse template from " << pulse_template << endl;
+        gLog << err << "ERROR - Reading Pulse template from " << pulse_template << endl;
         return 102;
     }
@@ -173,5 +177,5 @@
     if (!hpulse)
     {
-        cout << "ERROR - Pulse Template not found in " << pulse_template << endl;
+        gLog << err << "ERROR - Pulse Template not found in " << pulse_template << endl;
         return 103;
     }
Index: /trunk/Mars/fact/analysis/merpp.C
===================================================================
--- /trunk/Mars/fact/analysis/merpp.C	(revision 17031)
+++ /trunk/Mars/fact/analysis/merpp.C	(revision 17032)
@@ -1,2 +1,4 @@
+#include "MLogManip.h"
+
 void merpp(TString &froot, const char *id, const char *faux)
 {
@@ -6,5 +8,5 @@
     if (file.IsZombie())
     {
-        gLog << "merpp: Invalid file '" << froot << "'" << endl;
+        gLog << err << "merpp: Invalid file '" << froot << "'" << endl;
         return;
     }
@@ -14,5 +16,5 @@
     if (!tree)
     {
-        gLog << "merpp: Tree 'RunHeaders' not found... skipped." << endl;
+        gLog << err << "merpp: Tree 'RunHeaders' not found... skipped." << endl;
         return;
     }
@@ -20,5 +22,5 @@
     if (tree->GetEntries()!=1)
     {
-        gLog << "merpp: Number of RunHeaders do not match 1... skipped." << endl;
+        gLog << err << "merpp: Number of RunHeaders do not match 1... skipped." << endl;
         return;
     }
@@ -29,5 +31,5 @@
     if (file.Get(id))
     {
-        gLog << "WARNING - Tree '" << id << "' already existing... skipped." << endl;
+        gLog << warn << "WARNING - Tree '" << id << "' already existing... skipped." << endl;
         return;
     }
@@ -43,4 +45,5 @@
     TString time   = Form("MTime%s",   id);
 
+    gLog << all;
     gLog << " --- Fits file: " << ffits << endl;
     gLog << " --- Root file: " << froot << endl;
@@ -78,5 +81,5 @@
     if (!seq.IsValid())
     {
-        gLog << "ERROR - Sequence invalid!" << endl;
+        gLog << err << "ERROR - Sequence invalid!" << endl;
         return 1;
     }
@@ -85,4 +88,5 @@
 
     gLog.Separator("Merpp");
+    gLog << all;
     gLog << "Merge slow control data of sequence ";
     gLog << seq.GetFileName() << endl;
@@ -93,5 +97,5 @@
     if (seq.GetRuns(iter, MSequence::kFactImg, path)<=0)
     {
-        gLog << "ERROR - Sequence valid but without files." << endl;
+        gLog << err << "ERROR - Sequence valid but without files." << endl;
         return 2;
     }
Index: /trunk/Mars/fact/analysis/star.C
===================================================================
--- /trunk/Mars/fact/analysis/star.C	(revision 17031)
+++ /trunk/Mars/fact/analysis/star.C	(revision 17032)
@@ -1,2 +1,4 @@
+#include "MLogManip.h"
+
 int star(const char *seqfile="sequences/20111205_013.seq", Double_t lvl1=7.8, Double_t lvl2=3.9, const char *inpath = "output", const char *outpath = "output")
 {
@@ -9,5 +11,5 @@
     if (!seq.IsValid())
     {
-        gLog << "ERROR - Sequence invalid!" << endl;
+        gLog << err << "ERROR - Sequence invalid!" << endl;
         return 1;
     }
@@ -16,5 +18,5 @@
 
     gLog.Separator("Star");
-    gLog << "Calculate image parameters of sequence ";
+    gLog << all << "Calculate image parameters of sequence ";
     gLog << seq.GetFileName() << endl;
     gLog << endl;
@@ -32,5 +34,5 @@
     if (seq.GetRuns(iter, MSequence::kFactCal, inpath)<=0)
     {
-        gLog << "ERROR - Sequence valid but without files." << endl;
+        gLog << err << "ERROR - Sequence valid but without files." << endl;
         return 2;
     }
