Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:29

0001 
0002 #include "CondCore/CondDB/interface/Logger.h"
0003 //
0004 #include <iostream>
0005 
0006 using namespace cond::persistency;
0007 
0008 int main(int argc, char** argv) {
0009   Logger logger("TestO2O_gg_code");
0010   logger.start();
0011   std::string s("XYZ");
0012   logger.logInfo() << "Step #" << 1 << " and string is [" << s << "]";
0013   ::sleep(2);
0014   logger.logError() << "Step #" << 2;
0015   logger.logWarning() << "Step #" << 3;
0016   logger.log("SPECIAL") << "Blabla val=" << 77 << " and more stuff: " << std::string("ciao");
0017   logger.end(-1);
0018   logger.saveOnFile();
0019   return 0;
0020 }