30 #include <boost/shared_ptr.hpp>
39 using boost::shared_ptr;
59 ScreenLog::ScreenLog(
const PropertySet& preamble,
bool verbose,
int threshold)
60 : Log(threshold), _screen(0), _screenFrmtr(0)
63 _preamble->combine(preamble.
deepCopy());
79 ScreenLog::ScreenLog(
bool verbose,
int threshold)
80 : Log(threshold), _screen(0), _screenFrmtr(0)
88 _screenFrmtr =
new IndentedFormatter(verbose);
89 shared_ptr<LogFormatter> fmtr(_screenFrmtr);
93 _screen =
new LogDestination(&clog, fmtr, INHERIT_THRESHOLD);
94 shared_ptr<LogDestination> dest(_screen);
95 _destinations.push_back( dest );
98 ScreenLog::~ScreenLog() { }
103 ScreenLog& ScreenLog::operator=(
const ScreenLog& that) {
104 if (
this == &that)
return *
this;
106 dynamic_cast<Log*
>(
this)->
operator=(that);
107 _screen = that._screen;
108 _screenFrmtr = that._screenFrmtr;
125 void ScreenLog::createDefaultLog(
const PropertySet& preamble,
126 bool verbose,
int threshold)
128 Log::setDefaultLog(
new ScreenLog(preamble, verbose, threshold));
144 void ScreenLog::createDefaultLog(
bool verbose,
int threshold) {
145 Log::setDefaultLog(
new ScreenLog(verbose, threshold));
static void configure(void)
lsst::daf::base::PropertySet PropertySet
definition of the ScreenLog class
Class for storing generic metadata.
virtual Ptr deepCopy(void) const