Line data Source code
1 : /* This file (just.cc) was created by Ron Rechenmacher <ron@fnal.gov> on
2 : // Feb 19, 2014. "TERMS AND CONDITIONS" governing this file are in the README
3 : // or COPYING file. If you do not have such a file, one can be obtained by
4 : // contacting Ron or Fermi Lab in Batavia IL, 60510, phone: 630-840-3000.
5 : // $RCSfile: just.cc,v $
6 : // rev="$Revision: 1784 $$Date: 2026-10-09 13:51:46 -0500 (Fri, 09 Oct 2026) $";
7 : */
8 :
9 : #include "TRACE/trace.h" // TRACE
10 :
11 : #include <string>
12 :
13 : void example_sub_(void);
14 :
15 0 : static void sub0() { TRACE(TLVL_LOG, "hello - hopefully no compile warnings %d %.1f %d", 1, 1.5, 2); }
16 :
17 0 : static void sub1()
18 : {
19 : //TRACE( TLVL_INFO, std::string("hi %d")+" there", 2 );
20 0 : TRACE(TLVL_LOG, "hi %d - string param: " + std::string("there"), 2);
21 0 : }
22 :
23 0 : int main(/*int argc, char *argv[]*/)
24 : {
25 0 : sub0();
26 0 : sub1();
27 0 : TLOG(TLVL_INFO) << "hi from TLOG";
28 0 : example_sub_();
29 0 : return (0);
30 : } // main
|