More string -> boost::filesystem::path.
[dcpomatic.git] / src / lib / log.h
index 298b425cd85e66aa23c11524e89626761592d5e6..6a911b13f29c64dd742beef1eee54a6b6429e0e1 100644 (file)
@@ -17,8 +17,8 @@
 
 */
 
-#ifndef DVDOMATIC_LOG_H
-#define DVDOMATIC_LOG_H
+#ifndef DCPOMATIC_LOG_H
+#define DCPOMATIC_LOG_H
 
 /** @file src/log.h
  *  @brief A very simple logging class.
 
 #include <string>
 #include <boost/thread/mutex.hpp>
+#include <boost/filesystem.hpp>
 
 /** @class Log
  *  @brief A very simple logging class.
  */
-class Log
+class Log : public boost::noncopyable
 {
 public:
        Log ();
@@ -46,6 +47,7 @@ public:
        void microsecond_log (std::string m, Level l = STANDARD);
 
        void set_level (Level l);
+       void set_level (std::string l);
 
 protected:     
        /** mutex to protect the log */
@@ -61,12 +63,12 @@ private:
 class FileLog : public Log
 {
 public:
-       FileLog (std::string file);
+       FileLog (boost::filesystem::path file);
 
 private:
        void do_log (std::string m);
        /** filename to write to */
-       std::string _file;
+       boost::filesystem::path _file;
 };
 
 #endif