Header file of Info(), Warning(), Error() etc.?


I would like to use functions like Info(), Warning(), Error() etc for logging, which I can do if I include bunch of some ROOT headers.

However, I would like to include just one header file, but I can’t find (track) the proper one. Could you please tell me what is the name of the corresponding header file?

Many thanks!


TError.h if you do not inherit TObject and want standalone functions (you’ll have to specify the ‘location’: Error(“MyClass::SomeFunction”, “Invalid parameter”):wink: or if you inherit TObject, you are inheriting them as member-functions from TObject and use the like this: Error(“SomeFunction”, “Invalid parameter”); inside your member functions.

Yes, I understand it now. Many thanks! Jiri