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 namespace edmtest {
0008
0009 class UnitTestClient_O : public edm::global::EDAnalyzer<> {
0010 public:
0011 explicit UnitTestClient_O(edm::ParameterSet const&) {}
0012
0013 void analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const override;
0014 };
0015
0016 void UnitTestClient_O::analyze(edm::StreamID, edm::Event const&, edm::EventSetup const&) const {
0017 edm::LogInfo("importantInfo") << "This LogInfo message should appear in both destinations";
0018 edm::LogInfo("routineInfo") << "This LogInfo message should appear in the info destination";
0019 }
0020
0021 }
0022
0023 using edmtest::UnitTestClient_O;
0024 DEFINE_FWK_MODULE(UnitTestClient_O);