Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: RE: log message filter in Asyn
From: Mark Rivers <rivers@cars.uchicago.edu>
To: "'Andrew Johnson'" <anj@aps.anl.gov>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Tue, 17 Apr 2012 15:26:49 +0000
You can also turn off asynTrace messages for a particular device with

asynSetTraceMask(port, addr, 0)

But I see the utility of what Matt is proposing.  We use procServ to run our IOCs, both soft IOCs and vxWorks IOCs.  On vxWorks the procServ is controlling a telnet session to an Ethernet terminal server, which is connected to the vxWorks console port.  For logging we just use the log file capability of procServ, not a special logging program.  If a device becomes unavailable the log file can quickly grow very large with asynTrace error messages.

Of course we could manually set the asynTrace mask to 0, as shown above.  But it would be nice to have the capability that Matt proposes, to automatically reduce the number of messages in the log file if they are all just repeats.

Mark


-----Original Message-----
From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Andrew Johnson
Sent: Tuesday, April 17, 2012 10:01 AM
To: tech-talk@aps.anl.gov
Subject: Re: log message filter in Asyn

Hi Matthew,

On 2012-04-17 matthew.pearson@diamond.ac.uk wrote:
> Is there any interest in having a log message filter down in the Asyn
> layer?

Just making sure you know that you can turn off console error log message 
output if you want to: The IOC command 'eltc 0' disables all errlogPrintf() 
output on the console, and 'eltc 1' turns it back on again. The acronym stands 
for Errors Logged To Console; it does not stop messages being sent to the 
iocLogServer.  If you're trying to stem a fire-hose of error messages while 
debugging this is usually all you need.

HTH,

- Andrew
-- 
Never interrupt your enemy when he is making a mistake.
-- Napoleon Bonaparte


Replies:
Re: log message filter in Asyn Eric Norum
References:
log message filter in Asyn matthew.pearson
Re: log message filter in Asyn Andrew Johnson

Navigate by Date:
Prev: Re: log message filter in Asyn Eric Norum
Next: RE: Channel Access problem over SSH Hill, Jeffrey O
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: Re: log message filter in Asyn Andrew Johnson
Next: Re: log message filter in Asyn Eric Norum
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·