diff --git a/MyDaq/include/MyMainFrame.h b/MyDaq/include/MyMainFrame.h index 4c940a0cb066ecbf9b7cd792350b00048f0b6606..6591dd9618c706f67248e2e019dc75a8ec68b02b 100644 --- a/MyDaq/include/MyMainFrame.h +++ b/MyDaq/include/MyMainFrame.h @@ -69,6 +69,7 @@ class MyMainFrame : public TGMainFrame { int daq_set_eloghandler( const char *host, const int port, const char *logname); char* GetHostName(); int GetPort(){return 8082;}; + char* GetLogName(){return "FermilabDAQ";} public: ClassDef(MyMainFrame,0) diff --git a/MyDaq/src/MyMainFrame.cpp b/MyDaq/src/MyMainFrame.cpp index 42b34b5d9119c28b0afee6cad5ebb9e10875fbea..1526d2bd8bb4fe1e0d31e670a205affa8c7883de 100644 --- a/MyDaq/src/MyMainFrame.cpp +++ b/MyDaq/src/MyMainFrame.cpp @@ -163,7 +163,7 @@ void MyMainFrame::DoStart() { //elog std::cout<<"Set ElogHandler"<<std::endl; - daq_set_eloghandler(GetHostName(), GetPort(), "testBeamElog"); + daq_set_eloghandler(GetHostName(), GetPort(), GetLogName()); if(ElogH){ ElogH->BegrunLog( GetRunNumber(),"MyMainFrame", GetFileName()); diff --git a/README b/README index 7d7104f02a0554f0e74e9a7bdaff6581c2f50bb3..82a87febaa03db4615e9cb0d5f59290572821643 100644 --- a/README +++ b/README @@ -121,3 +121,28 @@ Device not xxusb 4) If during setup you get something about usb.h not found. You probably dont have libusb-devel sudo yum install libusb* +------------------------------------------------------ +------------------------------------------------------ +ELOG + +1) Add logbook "FermilabDAQ" to elog config file before using elogd to setup server + (config is possibly at /usr/local/elog/elogd.cfg ) + Example: + + [global] + port = 8082 + logbook tabs = 0 + Welcome title = ZDC Prototype Logbook for 2019 + + [FermilabDAQ] + Theme = default + Comment = ZDC DAQ Logbook for Test Beam at Fermilab + Data dir = /home/elog/FermilabDAQ + Attributes = Author, Subject + Reverse sort = 1 + Required Attributes = Subject, Author + Page Title = ZDC DAQ Logbook for Test Beam at Fermilab + Display mode = full + Thumbnail size = 100 +2) setup server with + elogd [-D for daemon] -c /path/to/config/elogd.cfg -v