StRoot
1
|
#include <StLoggerManager.h>
Public Member Functions | |
virtual ostream & | OperatorShift (ostream &os, StMessage *stm) |
virtual StMessMgr * | Instantiate () |
virtual StMessMgr * | Instantiate (const char *loggerName) |
virtual bool | isDebugEnabled () const |
virtual bool | isWarnEnabled () const |
virtual bool | isErrorEnabled () const |
virtual bool | isInfoEnabled () const |
virtual bool | isFatalEnabled () const |
virtual bool | isEnabledFor () const |
virtual bool | isQAInfoEnabled () const |
virtual bool | isUCMInfoEnabled () const |
virtual std::ostringstream & | Message (const char *mess="", const char *type="", const char *opt=0, const char *sourceFileName=0, int lineNumber=-1) |
virtual void | Print () |
virtual int | PrintAll () |
virtual StMessage * | FindMessage (const char *s1, const char *s2="", const char *s3="", const char *s4="", messVec *list=0) |
virtual messVec * | FindMessageList (const char *s1, const char *s2="", const char *s3="", const char *s4="", messVec *list=0) |
virtual int | RemoveMessage (StMessage *mess) |
virtual int | RemoveMessage (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual void | SetLimit (const char *str, int n=0) |
virtual int | GetLimit (const char *str) |
virtual void | ListLimits () |
virtual void | RemoveLimit (const char *str) |
virtual void | SetLevel (Int_t) |
virtual Int_t | GetLevel (Int_t) const |
virtual const char * | GetName () const |
virtual void | SwitchOff (const char *str) |
virtual void | SwitchOn (const char *str) |
virtual void | FixOn (const char *str) |
virtual void | NoLimits () |
virtual void | Summary (size_t nTerms=1) |
virtual void | MemorySummary () |
virtual void | MemoryOn () |
virtual void | MemoryOff () |
virtual int | AddType (const char *type, const char *text) |
virtual int | ListTypes () |
virtual void | Close () |
virtual std::ostringstream & | Info (const char *mess="", const char *opt="O", const char *sourceFileName=0, int lineNumber=-1) |
virtual int | PrintInfos () |
virtual const messVec * | GetInfos () |
virtual StMessage * | FindInfo (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual messVec * | FindInfoList (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual std::ostringstream & | Warning (const char *mess="", const char *opt="E", const char *sourceFileName=0, int lineNumber=-1) |
virtual int | PrintWarnings () |
virtual const messVec * | GetWarnings () |
virtual StMessage * | FindWarning (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual messVec * | FindWarningList (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual std::ostringstream & | Error (const char *mess="", const char *opt="E", const char *sourceFileName=0, int lineNumber=-1) |
virtual int | PrintErrors () |
virtual const messVec * | GetErrors () |
virtual StMessage * | FindError (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual messVec * | FindErrorList (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual std::ostringstream & | Debug (const char *mess="", const char *opt="OT", const char *sourceFileName=0, int lineNumber=-1) |
virtual int | PrintDebug () |
virtual const messVec * | GetDebugs () |
virtual StMessage * | FindDebug (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual messVec * | FindDebugList (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual std::ostringstream & | QAInfo (const char *mess="", const char *opt="OS", const char *sourceFileName=0, int lineNumber=-1) |
virtual int | PrintQAInfo () |
virtual const messVec * | GetQAInfos () |
virtual StMessage * | FindQAInfo (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual messVec * | FindQAInfoList (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual std::ostringstream & | UCMInfo (const char *mess="", const char *opt="OS", const char *sourceFileName=0, int lineNumber=-1) |
virtual int | PrintUCMInfo () |
virtual const messVec * | GetUCMInfos () |
virtual StMessage * | FindUCMInfo (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual messVec * | FindUCMInfoList (const char *s1, const char *s2="", const char *s3="", const char *s4="") |
virtual std::ostringstream & | out (const char *mess="") |
virtual std::ostringstream & | err (const char *mess="") |
virtual void | PrintInfo () |
virtual std::ostringstream & | Fatal (const char *mess="", const char *opt="F", const char *sourceFileName=0, int lineNumber=-1) |
void | PrintLogger (const char *mess, unsigned char type, const char *opt, const char *sourceFileName=0, int lineNumber=-1) |
Public Member Functions inherited from StMessMgr | |
StMessMgr (const StMessMgr &) | |
virtual std::ostream & | OperatorShift (std::ostream &os, StMessage *stm)=0 |
virtual StMessage * | FindMessage (const char *s1, const char s2[]="", const char *s3="", const char *s4="", messVec *list=0)=0 |
virtual bool | isWarningEnabled () const |
Static Public Member Functions | |
static StMessMgr * | StarLoggerInit () |
static StMessMgr * | StarLoggerInit (const char *loggerName) |
static bool | isColorEnabled () |
static void | setColorEnabled (bool t=true) |
Static Public Member Functions inherited from StMessMgr | |
static StMessMgr * | CurrentMessager () |
static StMessMgr * | Instance () |
static StMessMgr * | Instance (const char *) |
static StMessMgr * | SetCurrentMessager (StMessMgr *mgr=0) |
Protected Member Functions | |
StLoggerManager (const char *loggerName="BFC") | |
StLoggerManager (const StLoggerManager &) | |
virtual void | BuildMessage (const char *mess="", unsigned char type=0, const char *opt=0, const char *sourceFileName=0, int lineNumber=-1) |
void | SetStarOptionFilter (const log4cxx::varia::StarOptionFilterPtr &filter) |
const log4cxx::varia::StarOptionFilterPtr & | GetStarOptionFilter () const |
log4cxx::varia::StarOptionFilterPtr & | GetStarOptionFilter () |
std::ostringstream & | Stream () |
virtual void | IgnoreRepeats () |
virtual void | AllowRepeats () |
virtual void | AllowRepeats (int nRepeats) |
virtual int | PrintList (messVec *list) |
virtual const messVec * | GetAll () |
Protected Member Functions inherited from StMessMgr | |
StMessMgr & | operator= (const StMessMgr &) |
Static Protected Member Functions | |
static int | LevelIndex (char level) |
static void | DestroyInstance () |
Static Protected Attributes | |
static bool | mColorEnabled = kFALSE |
Friends | |
class | StChain |
Additional Inherited Members | |
Public Types inherited from StMessMgr | |
enum | ESTARMakerErrorLevels { kAll =-5, kFatal, kError, kWarning, kInfo, kDefault, kDebug, kDebug2 } |
This class manages the messages in STAR software. It is a singleton. It inherits from StMessMgr, which provides the external interface. Messages are stored in a vector, and come in several types (i.e. info, error, debug ). The types "I" (info), "W" (warning), "E" (error), "D" (debug), "Q" (QAInfo), "U" (UCMInfo) are predefined. Message finding and summary tools are also available.
Definition at line 43 of file StLoggerManager.h.