X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffile_log.h;h=2795349ce6522dbb39c4804157368b201bfa1c58;hb=refs%2Fheads%2F2493-player-export-frame;hp=bd6a7bf6a4e49288d9c6883af1e78c8d440bf9d2;hpb=3828baf56467224f5d44049bf1e7a7ed11f43a05;p=dcpomatic.git diff --git a/src/lib/file_log.h b/src/lib/file_log.h index bd6a7bf6a..2795349ce 100644 --- a/src/lib/file_log.h +++ b/src/lib/file_log.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2012 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,17 +18,21 @@ */ + #include "log.h" + class FileLog : public Log { public: - FileLog (boost::filesystem::path file); + explicit FileLog (boost::filesystem::path file); + FileLog (boost::filesystem::path file, int types); - std::string head_and_tail (int amount = 1024) const; + std::string head_and_tail (int amount = 1024) const override; private: - void do_log (boost::shared_ptr entry); + void do_log (std::shared_ptr entry) override; + /** filename to write to */ boost::filesystem::path _file; };