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.

gaudi/outputlevel.1248522825.txt.gz · Last modified: 2009/07/25 13:53 by decianm