LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | List of all members
lsst::pex::logging::IndentedFormatter Class Reference

#include <LogFormatter.h>

Inheritance diagram for lsst::pex::logging::IndentedFormatter:
lsst::pex::logging::BriefFormatter lsst::pex::logging::LogFormatter

Public Member Functions

 IndentedFormatter (bool verbose=false)
 
 IndentedFormatter (const IndentedFormatter &that)
 
virtual ~IndentedFormatter ()
 
IndentedFormatteroperator= (const IndentedFormatter &that)
 
virtual void write (std::ostream *strm, const LogRecord &rec)
 
- Public Member Functions inherited from lsst::pex::logging::BriefFormatter
 BriefFormatter (bool verbose=false)
 
 BriefFormatter (const BriefFormatter &that)
 
virtual ~BriefFormatter ()
 
BriefFormatteroperator= (const BriefFormatter &that)
 
bool isVerbose ()
 
void setVerbose (bool printAll)
 
- Public Member Functions inherited from lsst::pex::logging::LogFormatter
 LogFormatter ()
 
 LogFormatter (const LogFormatter &that)
 
virtual ~LogFormatter ()
 
LogFormatteroperator= (const LogFormatter &that)
 

Detailed Description

a screen-oriented formatter that indents debugging messages according to their verbosity level.

This class replicates the DC2 formatting of Trace messages.

Definition at line 183 of file LogFormatter.h.

Constructor & Destructor Documentation

lsst::pex::logging::IndentedFormatter::IndentedFormatter ( bool  verbose = false)
inlineexplicit

create the formatter.

Parameters
verboseall data property values will be printed.

Definition at line 190 of file LogFormatter.h.

191  : BriefFormatter(verbose)
192  { }
BriefFormatter(bool verbose=false)
Definition: LogFormatter.h:121
lsst::pex::logging::IndentedFormatter::IndentedFormatter ( const IndentedFormatter that)
inline

create a copy of a LogFormatter

Definition at line 197 of file LogFormatter.h.

198  : BriefFormatter(that)
199  { }
BriefFormatter(bool verbose=false)
Definition: LogFormatter.h:121
virtual lsst::pex::logging::IndentedFormatter::~IndentedFormatter ( )
virtual

delete the formatter

Member Function Documentation

IndentedFormatter& lsst::pex::logging::IndentedFormatter::operator= ( const IndentedFormatter that)
inline

copy another formatter into this one

Definition at line 209 of file LogFormatter.h.

209  {
210  if (this == &that) return *this;
211 
212  dynamic_cast<BriefFormatter*>(this)->operator=(that);
213  return *this;
214  }
BriefFormatter(bool verbose=false)
Definition: LogFormatter.h:121
virtual void lsst::pex::logging::IndentedFormatter::write ( std::ostream *  strm,
const LogRecord rec 
)
virtual

write out a log record to a stream

Parameters
strmthe output stream to write the record to
recthe record to write

Reimplemented from lsst::pex::logging::BriefFormatter.


The documentation for this class was generated from the following file: