_HADES_CLASS_DESCRIPTION HMessageMgr This class manages three different outputs for all kind of messages. Besides the standart output, which is the default, one can also write the messages to a file, or via a socket to a remote logging process. The usage of this class should be done via the four macros that are defined in the hmessagemgr.h file. DEBUG_msg(level, det, text) ERROR_msg(det, text) WARNING_msg(level, det, text) INFO_msg(level, det, text) The meaning of the parameters is: level - level of this message, never set it to zero because this means no message at all will be printed det - detector which sends this message, can be one of: DET_RICH DET_START DET_MDC DET_TOF DET_TOFINO DET_SHOWER DET_TRIGGER text - text to print
HMessageMgr(const HMessageMgr&) | |
HMessageMgr(const Char_t* name, const Char_t* title) | |
virtual | ~HMessageMgr() |
void | TObject::AbstractMethod(const char* method) const |
virtual void | TObject::AppendPad(Option_t* option = "") |
virtual void | TObject::Browse(TBrowser* b) |
static TClass* | Class() |
virtual const char* | TObject::ClassName() const |
virtual void | TNamed::Clear(Option_t* option = "") |
virtual TObject* | TNamed::Clone(const char* newname = "") const |
virtual Int_t | TNamed::Compare(const TObject* obj) const |
virtual void | TNamed::Copy(TObject& named) const |
void | debug(Char_t level, Int_t det, const Char_t* className, const Char_t* text) |
void | debug(Int_t level, Int_t det, const Char_t* className, const Char_t* text) |
void | debug(Int_t level, Int_t det, const Char_t* className, const Char_t* file, Int_t line, const Char_t* text) |
void | debugB(Char_t level, Int_t det, const Char_t* text) |
virtual void | TObject::Delete(Option_t* option = "")MENU |
virtual Int_t | TObject::DistancetoPrimitive(Int_t px, Int_t py) |
virtual void | TObject::Draw(Option_t* option = "") |
virtual void | TObject::DrawClass() constMENU |
virtual TObject* | TObject::DrawClone(Option_t* option = "") constMENU |
virtual void | TObject::Dump() constMENU |
void | enableDetectorMsg(Int_t det) |
virtual void | TObject::Error(const char* method, const char* msgfmt) const |
void | error(Char_t level, Int_t det, const Char_t* className, const Char_t* text) |
void | error(Int_t level, Int_t det, const Char_t* className, const Char_t* text) |
void | errorB(Char_t level, Int_t det, const Char_t* text) |
virtual void | TObject::Execute(const char* method, const char* params, Int_t* error = 0) |
virtual void | TObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0) |
virtual void | TObject::ExecuteEvent(Int_t event, Int_t px, Int_t py) |
virtual void | TObject::Fatal(const char* method, const char* msgfmt) const |
virtual void | TNamed::FillBuffer(char*& buffer) |
virtual TObject* | TObject::FindObject(const char* name) const |
virtual TObject* | TObject::FindObject(const TObject* obj) const |
virtual Option_t* | TObject::GetDrawOption() const |
static Long_t | TObject::GetDtorOnly() |
virtual const char* | TObject::GetIconName() const |
virtual const char* | TNamed::GetName() const |
virtual char* | TObject::GetObjectInfo(Int_t px, Int_t py) const |
static Bool_t | TObject::GetObjectStat() |
virtual Option_t* | TObject::GetOption() const |
virtual const char* | TNamed::GetTitle() const |
virtual UInt_t | TObject::GetUniqueID() const |
virtual Bool_t | TObject::HandleTimer(TTimer* timer) |
virtual ULong_t | TNamed::Hash() const |
static void | hydraErrorHandler(Int_t level, Bool_t abort, const Char_t* location, const Char_t* msg) |
virtual void | TObject::Info(const char* method, const char* msgfmt) const |
void | info(Char_t level, Int_t det, const Char_t* className, const Char_t* text) |
void | info(Int_t level, Int_t det, const Char_t* className, const Char_t* text) |
void | infoB(Char_t level, Int_t det, const Char_t* text) |
virtual Bool_t | TObject::InheritsFrom(const char* classname) const |
virtual Bool_t | TObject::InheritsFrom(const TClass* cl) const |
virtual void | TObject::Inspect() constMENU |
void | TObject::InvertBit(UInt_t f) |
virtual TClass* | IsA() const |
virtual Bool_t | TObject::IsEqual(const TObject* obj) const |
virtual Bool_t | TObject::IsFolder() const |
Bool_t | TObject::IsOnHeap() const |
virtual Bool_t | TNamed::IsSortable() const |
Bool_t | TObject::IsZombie() const |
virtual void | TNamed::ls(Option_t* option = "") const |
void | TObject::MayNotUse(const char* method) const |
void | messageSeperator(const Char_t* seperator, Int_t num) |
virtual Bool_t | TObject::Notify() |
void | TObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const |
static void | TObject::operator delete(void* ptr) |
static void | TObject::operator delete(void* ptr, void* vp) |
static void | TObject::operator delete[](void* ptr) |
static void | TObject::operator delete[](void* ptr, void* vp) |
void* | TObject::operator new(size_t sz) |
void* | TObject::operator new(size_t sz, void* vp) |
void* | TObject::operator new[](size_t sz) |
void* | TObject::operator new[](size_t sz, void* vp) |
HMessageMgr& | operator=(const HMessageMgr&) |
virtual void | TObject::Paint(Option_t* option = "") |
virtual void | TObject::Pop() |
virtual void | TNamed::Print(Option_t* option = "") const |
virtual Int_t | TObject::Read(const char* name) |
virtual void | TObject::RecursiveRemove(TObject* obj) |
void | TObject::ResetBit(UInt_t f) |
virtual void | TObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU |
virtual void | TObject::SavePrimitive(ostream& out, Option_t* option = "") |
void | TObject::SetBit(UInt_t f) |
void | TObject::SetBit(UInt_t f, Bool_t set) |
void | setDebugLevel(Char_t level) |
Bool_t | setDefault() |
virtual void | TObject::SetDrawOption(Option_t* option = "")MENU |
static void | TObject::SetDtorOnly(void* obj) |
void | setF(const Char_t* name) |
Bool_t | setFile(const Char_t* dir) |
void | setInfoLevel(Char_t level) |
void | setL(Int_t num) |
virtual void | TNamed::SetName(const char* name)MENU |
virtual void | TNamed::SetNameTitle(const char* name, const char* title) |
static void | TObject::SetObjectStat(Bool_t stat) |
Bool_t | setPort(const Char_t* host, Int_t port) |
void | setScreenOutput(Bool_t f = kTRUE) |
virtual void | TNamed::SetTitle(const char* title = "")MENU |
virtual void | TObject::SetUniqueID(UInt_t uid) |
void | setWarningLevel(Char_t level) |
virtual void | ShowMembers(TMemberInspector&) |
virtual Int_t | TNamed::Sizeof() const |
virtual void | Streamer(TBuffer&) |
void | StreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b) |
Bool_t | switchOff() |
virtual void | TObject::SysError(const char* method, const char* msgfmt) const |
Bool_t | TObject::TestBit(UInt_t f) const |
Int_t | TObject::TestBits(UInt_t f) const |
virtual void | TObject::UseCurrentStyle() |
virtual void | TObject::Warning(const char* method, const char* msgfmt) const |
void | warning(Char_t level, Int_t det, const Char_t* className, const Char_t* text) |
void | warning(Int_t level, Int_t det, const Char_t* className, const Char_t* text) |
void | warningB(Char_t level, Int_t det, const Char_t* text) |
virtual Int_t | TObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) |
virtual Int_t | TObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const |
virtual void | TObject::DoError(int level, const char* location, const char* fmt, va_list va) const |
void | ewrite(const Char_t* text) |
void | TObject::MakeZombie() |
void | write(const Char_t* text) |
enum Detector { | DET_RICH | |
DET_START | ||
DET_MDC | ||
DET_TOF | ||
DET_TOFINO | ||
DET_SHOWER | ||
DET_TRIGGER | ||
DET_RUNTIMEDB | ||
DET_KICKPLANE | ||
DET_QA | ||
DET_ALL | ||
}; | ||
enum TObject::EStatusBits { | kCanDelete | |
kMustCleanup | ||
kObjInCanvas | ||
kIsReferenced | ||
kHasUUID | ||
kCannotPick | ||
kNoContextMenu | ||
kInvalidObject | ||
}; | ||
enum TObject::[unnamed] { | kIsOnHeap | |
kNotDeleted | ||
kZombie | ||
kBitMask | ||
kSingleKey | ||
kOverwrite | ||
kWriteDelete | ||
}; |
TString | TNamed::fName | object identifier |
TString | TNamed::fTitle | object title |
Char_t | debugLevel | !< Level up to which the messages wil be printed. |
Int_t | detectorMsg | !< Bitmask fo which detector to print messages |
ofstream* | errorFile | !< File to write error messages to |
TSocket* | errorSocket | !< Socket to send error messages to |
Char_t* | file | !< pointer to store name of file where message comes from |
Char_t | infoLevel | !< Level up to which the messages wil be printed. |
Int_t | line | !< line in file where message comes from |
Char_t* | msg1 | !< internal message variable |
Char_t* | msg2 | !< internal message variable |
ofstream* | msgFile | !< File to write messages to (debug,warning,info) |
TSocket* | msgSocket | !< Socket to send messages to (debug,warning,info) |
Bool_t | screen | !< write to stdout in addition to file or socket |
TString* | thisHost | !< Name of this host |
Char_t | warningLevel | !< Level up to which the messages wil be printed. |
Resets the message logging to ist default. Closses all loggfiles or open sockets, and loggs further messages to stdout and stderr. Also the loglevels are set to the same values as in the constructor.
Closses all loggfiles or open sockets, and loggs further messages to stdout and stderr. Also the loglevels are set to the same values as in the constructor.
Sets the logfile. Input is the directory to where to log to. The filename is derived from the name of this object, that is given when creating it. Two files are created. One with extension .msg for all messages of type info, warning and debug. The other one with extension .err fo the error messages. param dir Directory where to store the logfiles. retval setFile Returns kTRUE if file could be opened, otherwise kFALSE.
Opens two socket connections to a logging server on the specified host. The passed port is used for the message logging. Errors are send to the portaddress port + 10. eventually opened logfiles are closed, if the connection could be opened. Otherwise the current logging stays active. param host Name of the host to send the logmessages to. param port Port to use for communication with remote process. retval setPort Returns kTRUE if remote process could be contacted, otherwise kFALSE is returned.
Sets the level of debug messages to level. param level Level of debugging, max 10 min 0.
Sets the level of info messages to level. param level Level of information, max 10 min 0.
Selects for which detector messages should be displayed. param det An or'd pattern of the DET_* constants.
Message handler for ROOT. Can be installed via gSystem->SetErrorHandler() Used by all ROOT classes to do message logging. Gives a common message layout. param level Level of logging param abort Wether to abort the execution after the printing of the message param location Location of the message param msg Text to be printed.
This function should never be called directly, use the DEBUG macro instead. This function writes a debug message to the output. It looks like this example:<br> debug <Hades >:No input specified<p> param level Level of message logging param det One of the DET_* constants that defines the detector printing this message. param className Name of the class that prints this message. param text Text to 'print.
This function should never be called directly, use the ERROR macro instead. This function writes a error message to the output. It looks like this example:<br> error <Hades >:No input specified<p> param level Level of message logging param det One of the DET_* constants that defines the detector printing this message. param className Name of the class that prints this message. param text Text to print.
This function should never be called directly, use the WARNING macro instead. This function writes a warning message to the output. It looks like this example:<br> warning<Hades >:No input specified<p> param level Level of message logging param det One of the DET_* constants that defines the detector printing this message. param className Name of the class that prints this message. param text Text to print.
This function should never be called directly, use the INFO macro instead. This function writes a info message to the output. It looks like this example:<br> info< Hades>:No input specified<p> param level Level of message logging param det One of the DET_* constants that defines the detector printing this message. param className Name of the class that prints this message. param text Text to print.
This function put out an error message including some variable arguments. The text parameter takes the standart parameters as in printf(). The output looks like:<br> debug< Hades>:No input specified<p> param level Level of message logging param det One of the DET_* constants that defines the detector printing this message. param className Name of the class that prints this message. param text Text to print. param ... Variable number of arguments, that will be used to fill the text
This function put out an error message including some variable arguments. The text parameter takes the standart parameters as in printf(). The output looks like:<br> error< Hades>:No input specified<p> param level Level of message logging param det One of the DET_* constants that defines the detector printing this message. param className Name of the class that prints this message. param text Text to print. param ... Variable number of arguments, that will be used to fill the text
This function put out an warning message including some variable arguments. The text parameter takes the standart parameters as in printf(). The output looks like:<br> warning< Hades>:No input specified<p> param level Level of message logging param det One of the DET_* constants that defines the detector printing this message. param className Name of the class that prints this message. param text Text to print. param ... Variable number of arguments, that will be used to fill the text
This function put out an info message including some variable arguments. The text parameter takes the standart parameters as in printf(). The output looks like:<br> info< Hades>:No input specified<p> param level Level of message logging param det One of the DET_* constants that defines the detector printing this message. param className Name of the class that prints this message. param text Text to print. param ... Variable number of arguments, that will be used to fill the text
This function put out an error message including some variable arguments. The text parameter takes the standart parameters as in printf(). The output looks like:<br> debug< Hades>:No input specified<p> param level Level of message logging param det One of the DET_* constants that defines the detector printing this message. param className Name of the class that prints this message. param file Filename that prints the message. param line Linenumber from where the message is printed. param text Text to print. param ... Variable number of arguments, that will be used to fill the text
This function put out an error message including some variable arguments. The text parameter takes the standart parameters as in printf(). The output looks like:<br> error< Hades>:No input specified<p> param level Level of message logging param det One of the DET_* constants that defines the detector printing this message. param text Text to print. param ... Variable number of arguments, that will be used to fill the text
This function put out an warning message including some variable arguments. The text parameter takes the standart parameters as in printf(). The output looks like:<br> warning< Hades>:No input specified<p> param level Level of message logging param det One of the DET_* constants that defines the detector printing this message. param text Text to print. param ... Variable number of arguments, that will be used to fill the text
This function put out an info message including some variable arguments. The text parameter takes the standart parameters as in printf(). The output looks like:<br> info< Hades>:No input specified<p> param level Level of message logging param det One of the DET_* constants that defines the detector printing this message. param text Text to print. param ... Variable number of arguments, that will be used to fill the text
This function put out an error message including some variable arguments. The text parameter takes the standart parameters as in printf(). The output looks like:<br> debug< Hades>:No input specified<p> param level Level of message logging param det One of the DET_* constants that defines the detector printing this message. param file Filename that prints the message. param line Linenumber from where the message is printed. param text Text to print. param ... Variable number of arguments, that will be used to fill the text
Internal function used to write to the correct output. Used for info, warning and debug messages. Adds the name of the host the code is running on, if output is send via socket to a remote logging process. If screen is set to kTRUE the output is writen to stdout in addition to the logfile. param text Text to be writen to specified target.
Internal function used to write to the correct output. Used for error messages. Adds the name of the host the code is running on, if output is send via socket to a remote logging process. If screen is set to kTRUE the output is writen to stdout in addition to the logfile. param text Text to be writen to specified target.
Enable output to stdout even if writen to file.
{screen = f;}