X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Flog.h;h=300df743b9c7f4f790eafc4e465b45a7a1dfffe7;hb=4e5c1b91ff04bebc692e52115a741948037dda54;hp=f20b0a14866b5aedda0b3b4de883e7b40d3cc7c3;hpb=009e4abb14cfcaecc0de8fab179adc7bd5feffd4;p=dcpomatic.git diff --git a/src/lib/log.h b/src/lib/log.h index f20b0a148..300df743b 100644 --- a/src/lib/log.h +++ b/src/lib/log.h @@ -24,10 +24,10 @@ * @brief A very simple logging class. */ -#include #include #include #include +#include /** @class Log * @brief A very simple logging class. @@ -48,7 +48,7 @@ public: void set_types (int types); - virtual std::string head_and_tail () const = 0; + virtual std::string head_and_tail (int amount = 1024) const = 0; protected: @@ -69,7 +69,7 @@ class FileLog : public Log public: FileLog (boost::filesystem::path file); - std::string head_and_tail () const; + std::string head_and_tail (int amount = 1024) const; private: void do_log (std::string m); @@ -80,7 +80,7 @@ private: class NullLog : public Log { public: - std::string head_and_tail () const { + std::string head_and_tail (int) const { return ""; }