How to use SealBase

LCG Project | LCG Applications Area

SEAL Project | Project Portal

 

$Date: 2004/07/05 14:19:55 $

SealBase::Log

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.

Code Example

#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; }

Contact: Lorenzo Moneta, Lassi A. Tuura