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
Classes | Namespaces | Macros | Typedefs
Log.h File Reference
#include "lsst/daf/base/PropertySet.h"
#include "lsst/pex/logging/LogRecord.h"
#include "lsst/pex/logging/LogDestination.h"
#include "lsst/pex/logging/threshold/Memory.h"
#include <vector>
#include <list>
#include <cstdarg>
#include <boost/shared_ptr.hpp>

Go to the source code of this file.

Classes

class  lsst::pex::logging::Log
 a place to record messages and descriptions of the state of processing. More...
 
class  lsst::pex::logging::LogRec
 A LogRecord attached to a particular Log that suppports stream stream semantics. More...
 

Namespaces

 lsst
 Estimate image backgrounds.
 
 lsst::pex
 
 lsst::pex::logging
 

Macros

#define __attribute__(x)
 
#define ATTRIB_FORMAT(fmt, start)   __attribute__ ((format(printf,fmt,start)))
 
#define LEVELF(fname, lev)
 
#define LEVELF(fname, lev)
 

Typedefs

typedef LogRec lsst::pex::logging::Rec
 

Macro Definition Documentation

#define __attribute__ (   x)

Definition at line 45 of file Log.h.

#define ATTRIB_FORMAT (   fmt,
  start 
)    __attribute__ ((format(printf,fmt,start)))

Definition at line 51 of file Log.h.

#define LEVELF (   fname,
  lev 
)
Value:
void fname(const std::string& message, \
const lsst::daf::base::PropertySet& properties) { \
log(lev, message, properties); \
} \
template <class T> \
void fname(const std::string& message, \
const std::string& name, const T& val) { \
log<T>(lev, message, name, val); \
} \
template <class T> \
void fname(const std::string& message, \
const RecordProperty<T>& prop) { \
log<T>(lev, message, prop); \
} \
void fname(const std::string& message) { \
log(lev, message); \
} \
void fname(const boost::format& message) { \
log(lev, message); \
}
table::Key< std::string > name
Definition: ApCorrMap.cc:71
bool val
def log
Definition: log.py:85
Class for storing generic metadata.
Definition: PropertySet.h:82

Shortcut versions of each of the log() methods above:

void logdebug(const std::string& message); void logdebug(const boost::format& message); template<T> void logdebug(const std::string& message, const RecordProperty<T>& prop); template<T> void logdebug(const std::string& message, const std::string& name, const T& val); void logdebug(const std::string& message, const lsst::daf::base::PropertySet& properties);

And likewise for: void info(const std::string& message); void warn(const std::string& message); void fatal(const std::string& message);

Define the following functions:

void debugf(const char* fmt, ...); void infof(const char* fmt, ...); void warnf(const char* fmt, ...); void fatalf(const char* fmt, ...);

Definition at line 517 of file Log.h.

#define LEVELF (   fname,
  lev 
)
Value:
void fname(const char* fmt, ...) \
if (lev < getThreshold()) return; \
va_list ap; \
va_start(ap, fmt); \
_format(lev, fmt, ap); \
va_end(ap); \
}
if(width!=gim.getWidth()||height!=gim.getHeight()||x0!=gim.getX0()||y0!=gim.getY0())
Definition: saturated.cc:47
#define ATTRIB_FORMAT(fmt, start)
Definition: Log.h:51

Shortcut versions of each of the log() methods above:

void logdebug(const std::string& message); void logdebug(const boost::format& message); template<T> void logdebug(const std::string& message, const RecordProperty<T>& prop); template<T> void logdebug(const std::string& message, const std::string& name, const T& val); void logdebug(const std::string& message, const lsst::daf::base::PropertySet& properties);

And likewise for: void info(const std::string& message); void warn(const std::string& message); void fatal(const std::string& message);

Define the following functions:

void debugf(const char* fmt, ...); void infof(const char* fmt, ...); void warnf(const char* fmt, ...); void fatalf(const char* fmt, ...);

Definition at line 517 of file Log.h.