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 | Static Public Attributes | Private Types | Private Member Functions | Private Attributes | List of all members
lsst::pex::logging::NetLoggerFormatter Class Reference

a formatter that renders records in a netlogger-like format. More...

#include <LogFormatter.h>

Inheritance diagram for lsst::pex::logging::NetLoggerFormatter:
lsst::pex::logging::LogFormatter

Public Member Functions

 NetLoggerFormatter (const std::string &valueDelim=defaultValDelim)
 
 NetLoggerFormatter (const NetLoggerFormatter &that)
 
virtual ~NetLoggerFormatter ()
 
NetLoggerFormatteroperator= (const NetLoggerFormatter &that)
 
const std::string & getValueDelimiter () const
 
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 ()
 
LogFormatteroperator= (const LogFormatter &that)
 

Static Public Attributes

static const std::string defaultValDelim
 

Private Types

typedef std::map< std::string,
char > 
TypeSymbolMap
 

Private Member Functions

void loadTypeLookup ()
 

Private Attributes

TypeSymbolMap _tplookup
 
std::string _midfix
 

Detailed Description

a formatter that renders records in a netlogger-like format.

This is the format intended for use with the Event system.

Definition at line 229 of file LogFormatter.h.

Member Typedef Documentation

typedef std::map<std::string, char> lsst::pex::logging::NetLoggerFormatter::TypeSymbolMap
private

Definition at line 274 of file LogFormatter.h.

Constructor & Destructor Documentation

lsst::pex::logging::NetLoggerFormatter::NetLoggerFormatter ( const std::string &  valueDelim = defaultValDelim)
explicit

create a formatter for NetLogger-like ouput

Parameters
valueDelimthe string to use as the delimiter between the name and the value. The default is ":".
lsst::pex::logging::NetLoggerFormatter::NetLoggerFormatter ( const NetLoggerFormatter that)
inline

create a copy

Definition at line 242 of file LogFormatter.h.

virtual lsst::pex::logging::NetLoggerFormatter::~NetLoggerFormatter ( )
virtual

delete the formatter

Member Function Documentation

const std::string& lsst::pex::logging::NetLoggerFormatter::getValueDelimiter ( ) const
inline

return the string used to separate a property name and its value in the output stream.

Definition at line 262 of file LogFormatter.h.

262 { return _midfix; }
void lsst::pex::logging::NetLoggerFormatter::loadTypeLookup ( )
private
NetLoggerFormatter& lsst::pex::logging::NetLoggerFormatter::operator= ( const NetLoggerFormatter that)

copy another formatter into this one

virtual void lsst::pex::logging::NetLoggerFormatter::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

Implements lsst::pex::logging::LogFormatter.

Member Data Documentation

std::string lsst::pex::logging::NetLoggerFormatter::_midfix
private

Definition at line 278 of file LogFormatter.h.

TypeSymbolMap lsst::pex::logging::NetLoggerFormatter::_tplookup
private

Definition at line 277 of file LogFormatter.h.

const std::string lsst::pex::logging::NetLoggerFormatter::defaultValDelim
static

Definition at line 271 of file LogFormatter.h.


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