Hello Jianguo,
Even with streamDebug=0 the ioc still prints error messages, e.g. on
timeouts. These messages go to the console and to the log file.
But a log file is only created if you do so in the main function of
your ioc. For example I have in streamAppMain.cc:
int main(int argc,char *argv[])
{
#ifdef DEBUGFILE
#define STR2(x) #x
#define STR(x) STR2(x)
StreamDebugFile = fopen(STR(DEBUGFILE), "w");
#endif
if(argc>=2) {
iocsh(argv[1]);
epicsThreadSleep(.2);
}
iocsh(NULL);
return(0);
}
When you compile it without DEBUGFILE being set it will not create the
file. Instead all messages only go to the console.
The macro is set in the example Makefile:
# Write StreamDevice debug output to this file
CPPFLAGS += -DDEBUGFILE=StreamDebug.log
Simply comment out this line.
Best regards,
Dirk
Ding Jianguo wrote:
> Hi, all
>
> I run epics with streamDevice+asynDriver on MOXA embeded computer
> DA-660(32M flash, 128M RAM). The IOC creats StreamDebug.log file to
> record error message of communication. Although I set streamDebug to 0,
> The log file still increases to MBs after IOC run for several days, thus
> make all free space exhausted. Is there any way to prevent all debug
> message from writing to the log file?
>
> Jianguo
> SSSRF,SINAP,CAS.
>
- Navigate by Date:
- Prev:
Re: Debugging EPICS with gdb Ernest L. Williams Jr.
- Next:
rtems-4.10 tftp support Jim Chen
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Debugging EPICS with gdb Ernest L. Williams Jr.
- Next:
Problem: Build EPICS 3.14.12 on windows 7 using Visual C++ 2010 Chen Xue
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
<2010>
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|