User Tools

Site Tools


gaudi:outputlevel

This is an old revision of the document!


Output Levels

Idea

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.

Normal Output Levels

  • DEBUG (2)
  • INFO (3)
  • WARNING (4)
  • ERROR (5)
  • FATAL (6)

Additional

Additionally the following constants are definded:

  • NIL (0)
  • VERBOSE (1)
  • ALWAYS (7)
  • NUM_LEVELS (8)

Add output statements to your code

In your C++-code, you can add these statements the following way, f.ex:

if ( msgLevel(MSG::WARNING) ) warning() << "Could not retrieve tracks. Skipping" << endmsg;

All the other messages are printed by replacing “warning” with the appropriate level.

Change the output level in the options file

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
gaudi/outputlevel.1248522940.txt.gz · Last modified: 2009/07/25 13:55 by decianm