LCG Project | LCG Applications Area | |
$Date: 2004/07/05 14:19:55 $ |
First step is to instrument the code using the LOG macro. If #NLOG compilation flag is not enabled, #LOG() expands to code that will dump the output to the logging device.
Usage:
LOG ( level, what , mode, expression)
More information can be found consulting the reference documentation.
#include "SealBase/Log.h"
int main (int, char **argv)
{ seal::LOG (2, warning, LFinit, "This is an initialization message\n"); seal::LOG (2, trace, LFgeneral, "This is a general message\n"); seal::LOG (-1, error, LFassert, "This is an error message which will be always visible\n");
return 0; }