X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffile_log.h;h=2795349ce6522dbb39c4804157368b201bfa1c58;hb=ff639b3cf30afcc097bfd21d39c8d15f466cadd6;hp=64999200072895dd2436ba2d94ab64f4d196cefa;hpb=aeb835a18c8df347e0ed68fb24631b320abeb611;p=dcpomatic.git diff --git a/src/lib/file_log.h b/src/lib/file_log.h index 649992000..2795349ce 100644 --- a/src/lib/file_log.h +++ b/src/lib/file_log.h @@ -1,33 +1,38 @@ /* - Copyright (C) 2012 Carl Hetherington + Copyright (C) 2012-2021 Carl Hetherington - This program is free software; you can redistribute it and/or modify + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. - This program is distributed in the hope that it will be useful, + DCP-o-matic is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with DCP-o-matic. If not, see . */ + #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; };