X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Flog.h;h=6a911b13f29c64dd742beef1eee54a6b6429e0e1;hp=2e5d69a0828a77d508b3cc1d4c122898204eb027;hb=6543d9a51b31ce24726187d9d1b018f05f09ef40;hpb=e1e7827d75df6ea11b6bfd2aabd3eb3fb1f2e701 diff --git a/src/lib/log.h b/src/lib/log.h index 2e5d69a08..6a911b13f 100644 --- a/src/lib/log.h +++ b/src/lib/log.h @@ -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. @@ -26,14 +26,16 @@ #include #include +#include /** @class Log * @brief A very simple logging class. */ -class Log +class Log : public boost::noncopyable { public: Log (); + virtual ~Log () {} enum Level { STANDARD = 0, @@ -45,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 */ @@ -60,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