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:55] – decianm | gaudi:outputlevel [2010/03/19 10:05] (current) – nchiap | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| ===== Add output statements to your code ===== | ===== Add output statements to your code ===== | ||
| In your C++-code, you can add these statements the following way, f.ex: | In your C++-code, you can add these statements the following way, f.ex: | ||
| - | < | + | < |
| + | // (A) | ||
| + | warning() << "Could not retrieve tracks. Skipping" | ||
| + | |||
| + | // (B) | ||
| if ( msgLevel(MSG:: | if ( msgLevel(MSG:: | ||
| </ | </ | ||
| All the other messages are printed by replacing " | 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 ===== | ===== Change the output level in the options file ===== | ||