|
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
|
a Log for transmitting log messages as events. More...
#include <EventLog.h>
Public Member Functions | |
| EventLog (const std::string runId, int sliceId, const std::string hostId="", int threshold=pexLogging::Log::INFO) | |
| constructor for EventLog. More... | |
| EventLog (const std::string runId, int sliceId, const PropertySet::Ptr &preamble, const std::string hostId="", int threshold=pexLogging::Log::INFO) | |
| constructor for EventLog. More... | |
| virtual | ~EventLog () |
| destructor More... | |
| int | getEventThreshold () |
| void | setEventThreshold (int thres) |
Public Member Functions inherited from lsst::pex::logging::Log | |
| Log (const int threshold=INFO, const std::string &name="") | |
| Log (const std::list< boost::shared_ptr< LogDestination > > &destinations, const lsst::daf::base::PropertySet &preamble, const std::string &name="", const int threshold=INFO, bool defaultShowAll=false) | |
| Log (const Log &parent, const std::string &childName, int threshold=INHERIT_THRESHOLD) | |
| Log (const Log &that) | |
| virtual | ~Log () |
| Log & | operator= (const Log &that) |
| const std::string & | getName () const |
| int | getThreshold () const |
| void | setThreshold (int threshold) |
| bool | sends (int importance) const |
| void | resetThreshold () |
| void | setThresholdFor (const std::string &name, int threshold) |
| int | getThresholdFor (const std::string &name) const |
| bool | willShowAll () const |
| void | setShowAll (bool yesno) |
| void | resetShowAll () |
| template<class T > | |
| void | addPreambleProperty (const std::string &name, const T &val) |
| template<class T > | |
| void | setPreambleProperty (const std::string &name, const T &val) |
| Log * | createChildLog (const std::string &childName, int threshold=INHERIT_THRESHOLD) const |
| void | log (int importance, const std::string &message, const lsst::daf::base::PropertySet &properties) |
| template<class T > | |
| void | log (int importance, const std::string &message, const std::string &name, const T &val) |
| template<class T > | |
| void | log (int importance, const std::string &message, const RecordProperty< T > &prop) |
| void | log (int importance, const std::string &message) |
| void | log (int importance, const boost::format &message) |
| void | logdebug (const std::string &message, const lsst::daf::base::PropertySet &properties) |
| template<class T > | |
| void | logdebug (const std::string &message, const std::string &name, const T &val) |
| template<class T > | |
| void | logdebug (const std::string &message, const RecordProperty< T > &prop) |
| void | logdebug (const std::string &message) |
| void | logdebug (const boost::format &message) |
| void | info (const std::string &message, const lsst::daf::base::PropertySet &properties) |
| template<class T > | |
| void | info (const std::string &message, const std::string &name, const T &val) |
| template<class T > | |
| void | info (const std::string &message, const RecordProperty< T > &prop) |
| void | info (const std::string &message) |
| void | info (const boost::format &message) |
| void | warn (const std::string &message, const lsst::daf::base::PropertySet &properties) |
| template<class T > | |
| void | warn (const std::string &message, const std::string &name, const T &val) |
| template<class T > | |
| void | warn (const std::string &message, const RecordProperty< T > &prop) |
| void | warn (const std::string &message) |
| void | warn (const boost::format &message) |
| void | fatal (const std::string &message, const lsst::daf::base::PropertySet &properties) |
| template<class T > | |
| void | fatal (const std::string &message, const std::string &name, const T &val) |
| template<class T > | |
| void | fatal (const std::string &message, const RecordProperty< T > &prop) |
| void | fatal (const std::string &message) |
| void | fatal (const boost::format &message) |
| void | format (int importance, const char *fmt,...) |
| void | debugf (const char *fmt,...) |
| void | infof (const char *fmt,...) |
| void | warnf (const char *fmt,...) |
| void | fatalf (const char *fmt,...) |
| void | send (const LogRecord &record) |
| void | addDestination (std::ostream &destination, int threshold) |
| void | addDestination (std::ostream &destination, int threshold, const boost::shared_ptr< LogFormatter > &formatter) |
| void | addDestination (const boost::shared_ptr< LogDestination > &destination) |
| const lsst::daf::base::PropertySet & | getPreamble () |
| void | markPersistent () |
| void | printThresholds (std::ostream &out) |
| void | reset () |
Static Public Member Functions | |
| static void | createDefaultLog (const std::string runId, int slideId, const std::string hostId="", int threshold=Log::INFO) |
| creates a default log More... | |
| static void | createDefaultLog (const std::string runId, int slideId, const PropertySet::Ptr &preamble, const std::string hostId="", int threshold=Log::INFO) |
Static Public Member Functions inherited from lsst::pex::logging::Log | |
| static Log & | getDefaultLog () |
| static void | createDefaultLog (const std::list< boost::shared_ptr< LogDestination > > &destinations, const lsst::daf::base::PropertySet &preamble, const std::string &name="", const int threshold=INFO) |
| static void | closeDefaultLog () |
Static Public Attributes | |
| static const std::string | LOGGING_TOPIC = "logging" |
Static Public Attributes inherited from lsst::pex::logging::Log | |
| static const int | DEBUG |
| static const int | INFO |
| static const int | WARN |
| static const int | INHERIT_THRESHOLD |
| static const int | FATAL |
Private Member Functions | |
| void | init (const std::string runId, int sliceId, const PropertySet::Ptr &preamble, const std::string hostId, int threshold) |
| void | initThres (int threshold) |
Private Attributes | |
| pexLogging::LogDestination * | _log |
| EventFormatter * | _formatter |
Additional Inherited Members | |
Protected Member Functions inherited from lsst::pex::logging::Log | |
| void | _send (int threshold, int importance, const char *fmt, va_list ap) |
| void | _format (int importance, const char *fmt, va_list ap) |
Static Protected Member Functions inherited from lsst::pex::logging::Log | |
| static void | setDefaultLog (Log *deflog) |
Protected Attributes inherited from lsst::pex::logging::Log | |
| boost::shared_ptr < threshold::Memory > | _thresholds |
| std::list< boost::shared_ptr < LogDestination > > | _destinations |
| lsst::daf::base::PropertySet::Ptr | _preamble |
Static Protected Attributes inherited from lsst::pex::logging::Log | |
| static Log * | defaultLog |
| static const std::string | _sep |
a Log for transmitting log messages as events.
Definition at line 58 of file EventLog.h.
| lsst.ctrl.events::EventLog::EventLog | ( | const std::string | runId, |
| int | sliceId, | ||
| const std::string | hostId = "", |
||
| int | threshold = pexLogging::Log::INFO |
||
| ) |
constructor for EventLog.
| runId | name of the run |
| sliceId | the current slice id |
| hostId | the name for this host. |
| threshold | threshold of this log. Default is threshold is Log::INFO |
Definition at line 64 of file EventLog.cc.
| lsst.ctrl.events::EventLog::EventLog | ( | const std::string | runId, |
| int | sliceId, | ||
| const PropertySet::Ptr & | preamble, | ||
| const std::string | hostId = "", |
||
| int | threshold = pexLogging::Log::INFO |
||
| ) |
constructor for EventLog.
| runId | name of the run |
| sliceId | the current slice id |
| preamble | a list of PropertySet to include in each log message. |
| hostId | the name for this host. |
| threshold | threshold of this log. Default is threshold is Log::INFO |
Definition at line 78 of file EventLog.cc.
|
virtual |
|
static |
creates a default log
| runId | name of the run |
| sliceId | the current slice id |
| hostId | the name of this host |
| threshold | the logging threshold to observe when sending log messages |
Definition at line 131 of file EventLog.cc.
|
static |
Definition at line 136 of file EventLog.cc.
|
inline |
Definition at line 67 of file EventLog.h.
|
private |
|
private |
private method to initialize the logging mechanism
Definition at line 115 of file EventLog.cc.
|
inline |
Definition at line 69 of file EventLog.h.
|
private |
Definition at line 77 of file EventLog.h.
|
private |
Definition at line 76 of file EventLog.h.
|
static |
Definition at line 60 of file EventLog.h.
1.8.5