This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| gaudi:outputlevel [2009/07/25 13:51] – decianm | gaudi:outputlevel [2010/03/19 10:05] (current) – nchiap | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| * ALWAYS (7) | * ALWAYS (7) | ||
| * NUM_LEVELS (8) | * NUM_LEVELS (8) | ||
| + | |||
| + | ===== Add output statements to your code ===== | ||
| + | In your C++-code, you can add these statements the following way, f.ex: | ||
| + | <code c++> | ||
| + | // (A) | ||
| + | warning() << "Could not retrieve tracks. Skipping" | ||
| + | |||
| + | // (B) | ||
| + | if ( msgLevel(MSG:: | ||
| + | </ | ||
| + | All the other messages are printed by replacing " | ||
| + | |||
| + | 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. | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== 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 | ||
| + | </ | ||
| + | |||