Skip to content
Snippets Groups Projects
Commit ea79a520 authored by tzhang74's avatar tzhang74
Browse files

version 1.0 -- debug 10

parent 82f52e6c
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
......@@ -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());
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment