30 #include <boost/shared_ptr.hpp>
39 using boost::shared_ptr;
59 int filethresh,
int screenthresh,
bool screenVerbose)
60 : ScreenLog(preamble, screenVerbose, screenthresh)
62 _init(filename, filethresh);
66 int filethresh,
int screenthresh,
bool screenVerbose)
67 : ScreenLog(screenVerbose, screenthresh)
69 _init(filename, filethresh);
75 fstrm =
new ofstream(filename.c_str(), ios_base::app);
77 shared_ptr<LogFormatter> fmtr(
new NetLoggerFormatter());
81 _file =
new LogDestination(
fstrm, fmtr, filethresh);
82 shared_ptr<LogDestination> dest(
_file);
92 const string& filename,
int filethresh,
93 int screenthresh,
bool screenVerbose)
96 screenthresh, screenVerbose));
100 int screenthresh,
bool screenVerbose)
103 screenthresh, screenVerbose));
static void setDefaultLog(Log *deflog)
lsst::daf::base::PropertySet PropertySet
void _init(const std::string &filename, int filethresh)
static void createDefaultLog(const lsst::daf::base::PropertySet &preamble, const std::string &filename, int filethresh=Log::INHERIT_THRESHOLD, int screenthresh=0, bool screenVerbose=false)
DualLog(const lsst::daf::base::PropertySet &preamble, const std::string &filename, int filethresh=0, int screenthresh=0, bool screenVerbose=false)
Class for storing generic metadata.
std::list< boost::shared_ptr< LogDestination > > _destinations