Index: /trunk/FACT++/src/DimWriteStatistics.cc
===================================================================
--- /trunk/FACT++/src/DimWriteStatistics.cc	(revision 11533)
+++ /trunk/FACT++/src/DimWriteStatistics.cc	(revision 11534)
@@ -72,5 +72,5 @@
 //! @return the size of the file, in bytes
 //
-int64_t DimWriteStatistics::GetFileSizeOnDisk(const string& file)
+int64_t DimWriteStatistics::GetFileSizeOnDisk(const string& file, MessageImp &log)
 {
      errno = 0;
@@ -85,5 +85,5 @@
      ostringstream str;
      str << "stat() failed for '" << file << "': " << strerror(errno) << " [errno=" << errno << "]";
-     fLog.Error(str);
+     log.Error(str);
 
      return -1;
Index: /trunk/FACT++/src/DimWriteStatistics.h
===================================================================
--- /trunk/FACT++/src/DimWriteStatistics.h	(revision 11533)
+++ /trunk/FACT++/src/DimWriteStatistics.h	(revision 11534)
@@ -56,5 +56,5 @@
 
     ///Returns the size on disk of a given file
-    int64_t GetFileSizeOnDisk(const std::string& file);
+    int64_t GetFileSizeOnDisk(const std::string& file) { return GetFileSizeOnDisk(file, fLog); }
 
     int Write(const Time &t, const std::string &txt, int qos);
@@ -77,4 +77,7 @@
     const Stats &GetTotalSizeWritten() const { return fStats; }
     uint16_t GetUpdateInterval() const { return fUpdateInterval; }
+
+    ///Returns the size on disk of a given file
+    static int64_t GetFileSizeOnDisk(const std::string& file, MessageImp &imp);
 };
 
