X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcpomatic_log.h;h=6a1c3a6ec54ccf170d24a56ebf2e7a0d7cca33d3;hb=ff639b3cf30afcc097bfd21d39c8d15f466cadd6;hp=605f951223894a009ae8e64319cbabffe9f33e54;hpb=4985d87750c87019dfe5dc7ef44e12c45326dd0e;p=dcpomatic.git diff --git a/src/lib/dcpomatic_log.h b/src/lib/dcpomatic_log.h index 605f95122..6a1c3a6ec 100644 --- a/src/lib/dcpomatic_log.h +++ b/src/lib/dcpomatic_log.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2018-2020 Carl Hetherington + Copyright (C) 2018-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,12 +18,15 @@ */ + #include "log.h" #include "compose.hpp" + /** The current log; set up by the front-ends when they have a Film to log into */ extern std::shared_ptr dcpomatic_log; + #define LOG_GENERAL(...) dcpomatic_log->log(String::compose(__VA_ARGS__), LogEntry::TYPE_GENERAL); #define LOG_GENERAL_NC(...) dcpomatic_log->log(__VA_ARGS__, LogEntry::TYPE_GENERAL); #define LOG_ERROR(...) dcpomatic_log->log(String::compose(__VA_ARGS__), LogEntry::TYPE_ERROR);