Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-28 03:09:56

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 // Test of LogSystem, LogAbsolute, LogProblem, LogPrint, LogVerbatim
0008 
0009 namespace edmtest {
0010 
0011   class UnitTestClient_M : public edm::global::EDAnalyzer<> {
0012   public:
0013     explicit UnitTestClient_M(edm::ParameterSet const&) {}
0014 
0015     void analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const override;
0016   };
0017 
0018   void UnitTestClient_M::analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const {
0019     edm::LogSystem("system") << "Text sent to LogSystem";
0020     edm::LogAbsolute("absolute") << "Text sent to LogAbsolute - should be unformatted";
0021     edm::LogProblem("problem") << "Text sent to LogProblem - should be unformatted";
0022     edm::LogPrint("print") << "Text sent to LogPrint- should be unformatted";
0023     edm::LogVerbatim("verbatim") << "Text sent to LogVerbatim - should be unformatted";
0024   }
0025 
0026 }  // namespace edmtest
0027 
0028 using edmtest::UnitTestClient_M;
0029 DEFINE_FWK_MODULE(UnitTestClient_M);