CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MLlog4cplus.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Services
4 // Class : log4cplus
5 //
6 //
7 // Original Author: Jim Kowalkowski
8 // $Id: MLlog4cplus.cc,v 1.9 2008/01/22 18:49:59 muzaffar Exp $
9 //
10 
15 
16 
17 
18 using namespace edm;
19 
20 
21 using namespace ML;
22 
23  xdaq::Application *MLlog4cplus::appl_ = 0;
25  {
26  // we may want these in the future, but probably not, since the
27  // MessageLogger service is supposed to deal with that stuff anyway (JBK)
28 
29  // iRegistry.watchPostBeginJob(this,&MLlog4cplus::postBeginJob);
30  // iRegistry.watchPostEndJob(this,&MLlog4cplus::postEndJob);
31 
32  // iRegistry.watchPreProcessEvent(this,&MLlog4cplus::preEventProcessing);
33  // iRegistry.watchPostProcessEvent(this,&MLlog4cplus::postEventProcessing);
34 
35  // iRegistry.watchPreModule(this,&MLlog4cplus::preModule);
36  // iRegistry.watchPostModule(this,&MLlog4cplus::postModule);
37 
38 
39  // pseudo-code:
40  // get message logger message queue (singleton)
41  // make new ELlog4cplus object using parameterset set information
42  // make a message with opcode NEWDEST
43  // send message (NEWDEST,ELdest*)
44 
45 
46  // we should first get a handle to the MessageLogger service to
47  // ensure that it is initialized before we are (JBK)
48  // edm::Service<edm::MessageLogger> handle;
49 
50  dest_p = new ELlog4cplus;
51  dest_p->setAppl(appl_);
52  edm::service::NamedDestination * ndest = new edm::service::NamedDestination ( "log4cplus", dest_p );
54  }
55 
56 
57  MLlog4cplus::~MLlog4cplus()
58  {
59  }
60 
61  void MLlog4cplus::postBeginJob()
62  {
63  }
64 
65  void MLlog4cplus::postEndJob()
66  {
67  }
68 
69  void MLlog4cplus::preEventProcessing(const edm::EventID& iID,
70  const edm::Timestamp& iTime)
71  {
72  }
73 
74  void MLlog4cplus::postEventProcessing(const Event& e, const EventSetup&)
75  {
76  }
77 
78  void MLlog4cplus::preModule(const ModuleDescription&)
79  {
80  }
81 
82  void MLlog4cplus::postModule(const ModuleDescription& desc)
83  {
84  }
85  void MLlog4cplus::setAppl(xdaq::Application *app)
86  {
87  appl_ = app;
88  }
static void MLqEXT(service::NamedDestination *p)
void setAppl(xdaq::Application *a)
Definition: ELlog4cplus.cc:531