LSSTApplications  8.0.0.0+107,8.0.0.1+13,9.1+18,9.2,master-g084aeec0a4,master-g0aced2eed8+6,master-g15627eb03c,master-g28afc54ef9,master-g3391ba5ea0,master-g3d0fb8ae5f,master-g4432ae2e89+36,master-g5c3c32f3ec+17,master-g60f1e072bb+1,master-g6a3ac32d1b,master-g76a88a4307+1,master-g7bce1f4e06+57,master-g8ff4092549+31,master-g98e65bf68e,master-ga6b77976b1+53,master-gae20e2b580+3,master-gb584cd3397+53,master-gc5448b162b+1,master-gc54cf9771d,master-gc69578ece6+1,master-gcbf758c456+22,master-gcec1da163f+63,master-gcf15f11bcc,master-gd167108223,master-gf44c96c709
LSSTDataManagementBasePackage
Classes | Namespaces | Macros | Typedefs
Log.h File Reference

definition of the DualLog class More...

#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
 

Detailed Description

definition of the DualLog class

definition of the Log and LogRec classes

Author
Ray Plante

Definition in file Log.h.

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); \
}
Class for storing generic metadata.
Definition: PropertySet.h:82
ImageT val
Definition: CR.cc:154

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, ...) \
ATTRIB_FORMAT(2, 3) { \
if (lev < getThreshold()) return; \
va_list ap; \
va_start(ap, fmt); \
_format(lev, fmt, ap); \
va_end(ap); \
}
#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.