Line data Source code
1 : #ifndef TRACE_SRC_EXAMPLE_USERSPACE_EX_TRACELN_H_
2 : #define TRACE_SRC_EXAMPLE_USERSPACE_EX_TRACELN_H_
3 :
4 : // This file (ex_traceln.h) was created by Ron Rechenmacher <ron@fnal.gov> on
5 : // Jun 7, 2019. "TERMS AND CONDITIONS" governing this file are in the README
6 : // or COPYING file. If you do not have such a file, one can be obtained by
7 : // contacting Ron or Fermi Lab in Batavia IL, 60510, phone: 630-840-3000.
8 : // $RCSfile: .emacs.gnu,v $
9 : // rev="$Revision: 1784 $$Date: 2026-10-09 13:51:46 -0500 (Fri, 09 Oct 2026) $";
10 :
11 : #include "TRACE/traceln.h"
12 :
13 : #include <stdio.h> // printf
14 : #define HDRNAME &std::string(__FILE__).substr(std::string(__FILE__).rfind('/') + 1)[0] // NOLINT
15 :
16 : class ExTraceLn {
17 : public:
18 0 : void trc(void)
19 : {
20 0 : TLOG() << "LOG() from header";
21 0 : TLOG(2, HDRNAME) << "TLOG(2) from header";
22 0 : };
23 : };
24 :
25 : #endif // TRACE_SRC_EXAMPLE_USERSPACE_EX_TRACELN_H_
|