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
|
a formatter that renders records in a brief format for screen display. More...
#include <LogFormatter.h>
Public Member Functions | |
BriefFormatter (bool verbose=false) | |
BriefFormatter (const BriefFormatter &that) | |
virtual | ~BriefFormatter () |
BriefFormatter & | operator= (const BriefFormatter &that) |
bool | isVerbose () |
void | setVerbose (bool printAll) |
virtual void | write (std::ostream *strm, const LogRecord &rec) |
Public Member Functions inherited from lsst::pex::logging::LogFormatter | |
LogFormatter () | |
LogFormatter (const LogFormatter &that) | |
virtual | ~LogFormatter () |
LogFormatter & | operator= (const LogFormatter &that) |
Private Attributes | |
bool | _doAll |
a formatter that renders records in a brief format for screen display.
This formatter has a normal mode and a verbose mode. In normal mode, only the log name (LOG) and text messages (COMMENT) are printed. In verbose mode, all other properties are printed as well.
Definition at line 114 of file LogFormatter.h.
|
inlineexplicit |
create the formatter.
verbose | all data property values will be printed. |
Definition at line 121 of file LogFormatter.h.
|
inline |
|
virtual |
delete the formatter
|
inline |
return true if all data properties will be printed or false if just the Log name ("LOG") and the text comment ("COMMENT") will be printed by default. All properties will always be printed when the LogRecord's willShowAll() returns true.
Definition at line 154 of file LogFormatter.h.
|
inline |
|
inline |
set whether all data properties will be printed by default or just the Log name ("LOG") and the text comment ("COMMENT"). This will be over-ridden for any LogRecord whose willShowAll() returns true.
printAll | true if all properties should be printed. |
Definition at line 163 of file LogFormatter.h.
|
virtual |
write out a log record to a stream
strm | the output stream to write the record to |
rec | the record to write |
Implements lsst::pex::logging::LogFormatter.
Reimplemented in lsst::pex::logging::IndentedFormatter.
|
private |
Definition at line 174 of file LogFormatter.h.