In the Gaudi-framework, there exist several layers of print-statements. According to the level which is set (f. ex. in an options-file), any message with this level or higher will be printed.
Additionally the following constants are definded:
In your C++-code, you can add these statements the following way, f.ex:
// (A) warning() << "Could not retrieve tracks. Skipping" << endmsg; // (B) if ( msgLevel(MSG::WARNING) ) warning() << "Could not retrieve tracks. Skipping" << endmsg;
All the other messages are printed by replacing “warning” with the appropriate level.
Version (B) runs faster when the message level set will not display this message. Therefore version (B) should be used for low-level messages (Debug, Info, Warning) while version (A) is better for Error or Fatal messages.
In the options file, you can change the output level for a given class by setting:
myClass.OutputLevel = 4
for example for a tool:
Tuple.TupleToolEventInfo.OutputLevel = 4