StRoot
1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
Stl3Util
base
FtfLog.cxx
1
#include "FtfLog.h"
2
3
#ifdef L3_ONLINE
4
#include "rtsLog.h"
5
#endif
6
7
#include <stdio.h>
8
#include <stdarg.h>
9
10
int
ftfLogTarget = FTF_LOG_PRINTF;
11
12
13
void
ftfLog(
const
char
*fmt, ...)
14
{
15
va_list args;
16
17
switch
(ftfLogTarget) {
18
19
case
FTF_LOG_PRINTF:
20
va_start(args,fmt);
21
vprintf(fmt,args);
22
va_end(args);
23
break
;
24
25
case
FTF_LOG_REMOTE:
26
27
#ifdef L3_ONLINE
28
29
char
tmp[100];
30
31
va_start(args,fmt);
32
vsprintf(tmp,fmt,args);
33
va_end(args);
34
35
//int l;
36
37
LOG_LOCAL(tmp, 0,0,0,0,0,0);
38
break
;
39
40
#else
41
printf(
"ftfLog: No remote logging available in this version of libL3Base\n"
);
42
break
;
43
#endif
44
45
default
:
46
printf(
"ftfLog: unknown value of global variable ftfLogTarget (%d). Doing nothing."
, ftfLogTarget);
47
48
}
49
}
50
Generated by
1.8.5