Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:48

0001 #include "FWCore/Framework/interface/Frameworkfwd.h"
0002 #include "FWCore/Framework/interface/global/EDAnalyzer.h"
0003 #include "FWCore/Framework/interface/MakerMacros.h"
0004 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0005 #include "FWCore/Utilities/interface/StreamID.h"
0006 
0007 #include <string>
0008 
0009 namespace edmtest {
0010 
0011   class UnitTestClient_A : public edm::global::EDAnalyzer<> {
0012   public:
0013     explicit UnitTestClient_A(edm::ParameterSet const&) {}
0014 
0015     void analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const override;
0016   };
0017 
0018   void UnitTestClient_A::analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const {
0019     std::string empty_;
0020     std::string file_ = "nameOfFile";
0021     LogDebug("cat_A") << "LogDebug was used to send this message";
0022     LogDebug("cat_B") << "LogDebug was used to send this other message";
0023     edm::LogError("cat_A") << "LogError was used to send this message"
0024                            << "-which is long enough to span lines but-"
0025                            << "will not be broken up by the logger any more";
0026     edm::LogError("cat_B") << "LogError was used to send this other message";
0027     edm::LogWarning("cat_A") << "LogWarning was used to send this message";
0028     edm::LogWarning("cat_B") << "LogWarning was used to send this other message";
0029     edm::LogInfo("cat_A") << "LogInfo was used to send this message";
0030     edm::LogInfo("cat_B") << "LogInfo was used to send this other message";
0031     edm::LogInfo("FwkTest") << "<Message>LogInfo was used to send a job report</Message>";
0032   }
0033 
0034 }  // namespace edmtest
0035 
0036 using edmtest::UnitTestClient_A;
0037 DEFINE_FWK_MODULE(UnitTestClient_A);