1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include "FWCore/MessageService/test/MLexampleModule_1.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include <iostream>
#include <string>
namespace edmtest {
void MLexampleModule_1::analyze(edm::StreamID,
edm::Event const& /*unused*/
,
edm::EventSetup const& /*unused*/
) const {
std::string empty_;
std::string file_ = "nameOfFile";
LogDebug("cat_A") << "LogDebug was used to send this message";
LogDebug("cat_B") << "LogDebug was used to send this other message";
edm::LogError("cat_B") << "LogError was used to send this other message";
edm::LogWarning("cat_A") << "LogWarning was used to send this message";
edm::LogWarning("cat_B") << "LogWarning was used to send this other message";
edm::LogInfo("cat_A") << "LogInfo was used to send this message";
edm::LogInfo("cat_B") << "LogInfo was used to send this other message";
edm::LogInfo("FwkTest") << "<Message>LogInfo was used to send a job report</Message>";
} // MessageLoggerClient::analyze()
} // namespace edmtest
using edmtest::MLexampleModule_1;
DEFINE_FWK_MODULE(MLexampleModule_1);
|