The FEE Server Control Engine of the ALICE-TRD - Westfälische ...
The FEE Server Control Engine of the ALICE-TRD - Westfälische ...
The FEE Server Control Engine of the ALICE-TRD - Westfälische ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
96<br />
# include <br />
# include <br />
# include " scsnbus . hh "<br />
5 # include " t r d _ f a c t o r y . hh "<br />
# include " scsn_ids . h"<br />
# include " e r r o r i n f o . hh "<br />
10 # include " logging . hh "<br />
# include " logoperators . hh "<br />
# include " s t r e a m _ l o g l e v e l s . hh "<br />
15<br />
# include " t r d _ f a c t o r y . hh "<br />
using namespace std ;<br />
i n t main ( void )<br />
{<br />
A Using <strong>the</strong> lib<strong>TRD</strong><br />
20 t r y { / / c r e a t e two output s t r e a m s<br />
t l o g . addStream ( " coutlog " , new CoutLogBuffer ( e i n f o ) ) ;<br />
t l o g . addStream ( " f i l e l o g " , new FileLogBuffer ( "/tmp/ l o g f i l e " ,<br />
edebug ) ) ;<br />
t l o g . setSource ( "MyProgram" ) ;<br />
}<br />
25 catch ( . . . ) {<br />
c e r r