Project

General

Profile

Feature #11021

Use Trace for logging & error reporting

Added by John Diamond almost 5 years ago. Updated over 4 years ago.

Status:
Assigned
Priority:
Normal
Assignee:
Category:
-
Start date:
11/29/2015
Due date:
% Done:

90%

Estimated time:
16.00 h
Spent time:
Duration:

Description

Switch to using trace for logging and error reporting.

History

#1 Updated by John Diamond over 4 years ago

  • Status changed from New to Assigned
  • Assignee set to John Diamond
  • % Done changed from 0 to 80

Created 13 trace levels:

    LOG_ERROR = 0,      
    LOG_WARNING = 1,    
    LOG_ACNET = 3,      
    LOG_BBM = 4,        
    LOG_BEL = 5,        
    LOG_DAQ = 6,        
    LOG_FILTER = 7,     
    LOG_CYCLEDEV = 8,   
    LOG_MDAT = 9,       
    LOG_LATCH = 10,     
    LOG_SUM = 11,       
    LOG_TRIGGERS = 12,  
    LOG_CONTROL = 13    

Went through all .cpp's and replaced cout's and cerr's with TRACE0's.

#2 Updated by John Diamond over 4 years ago

  • % Done changed from 80 to 90

Configured anubstartup to initialize Trace.
Had to move the location of traceInit to be AFTER MOOC is initialized in order to work properly.
This still needs to be done for Toroid startup scripts.



Also available in: Atom PDF