StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Static Protected Attributes | Friends | List of all members
StLoggerManager Class Reference

#include <StLoggerManager.h>

Inheritance diagram for StLoggerManager:
StMessMgr

Public Member Functions

virtual ostream & OperatorShift (ostream &os, StMessage *stm)
 
virtual StMessMgrInstantiate ()
 
virtual StMessMgrInstantiate (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 StMessageFindMessage (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 StMessageFindInfo (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 StMessageFindWarning (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 StMessageFindError (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 StMessageFindDebug (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 StMessageFindQAInfo (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 StMessageFindUCMInfo (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 StMessageFindMessage (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 StMessMgrStarLoggerInit ()
 
static StMessMgrStarLoggerInit (const char *loggerName)
 
static bool isColorEnabled ()
 
static void setColorEnabled (bool t=true)
 
- Static Public Member Functions inherited from StMessMgr
static StMessMgrCurrentMessager ()
 
static StMessMgrInstance ()
 
static StMessMgrInstance (const char *)
 
static StMessMgrSetCurrentMessager (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
StMessMgroperator= (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
}
 

Detailed Description

Author
G. Van Buren, BNL

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.

See Also
http://www.star.bnl.gov/STAR/comp/pkg/dev/StRoot/StUtilities/doc/StMessMgr.html

Definition at line 43 of file StLoggerManager.h.


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