File indexing completed on 2024-04-06 12:12:48
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include "FWCore/MessageService/test/UnitTestClient_A.h"
0016 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0017 #include "FWCore/Framework/interface/MakerMacros.h"
0018
0019 #include <iostream>
0020 #include <string>
0021
0022
0023 static std::string foo(std::string const& x) {
0024 std::cerr << "foo(" << x << ") was called.\n";
0025 return std::string();
0026 }
0027
0028 namespace edmtest {
0029
0030 void UnitTestClient_A::analyze(edm::Event const&
0031 ,
0032 edm::EventSetup const&
0033 ) {
0034 std::string empty_;
0035 std::string file_ = "nameOfFile";
0036 LogDebug("cat_A") << "LogDebug was used to send this message"
0037
0038 << foo("LogDebug");
0039 LogDebug("cat_B") << "LogDebug was used to send this other message";
0040 edm::LogError("cat_A") << "LogError was used to send this message"
0041 << "-which is long enough to span lines but-"
0042 << "will not be broken up by the logger any more";
0043 edm::LogError("cat_B") << "LogError was used to send this other message";
0044 edm::LogWarning("cat_A") << "LogWarning was used to send this message";
0045 edm::LogWarning("cat_B") << "LogWarning was used to send this other message";
0046 edm::LogInfo("cat_A") << "LogInfo was used to send this message"
0047
0048 << foo("LogInfo");
0049 edm::LogInfo("cat_B") << "LogInfo was used to send this other message";
0050 edm::LogInfo("FwkTest") << "<Message>LogInfo was used to send a job report</Message>";
0051
0052 }
0053
0054 }
0055
0056 using edmtest::UnitTestClient_A;
0057 DEFINE_FWK_MODULE(UnitTestClient_A);