EPICS Controls 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  2021  2022  2023  2024  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  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: log message filter in Asyn
From: Mark Rivers <[email protected]>
To: "'Andrew Johnson'" <[email protected]>, "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Wed, 18 Apr 2012 20:33:39 +0000
Note also that asyn messages can be turned off using medm or another OPI connected to an asyn record for that port.  Then you can selectively enable/disable each type of message (ASYN_TRACE_ERROR, ASYN_TRACE_FLOW, etc.).  That can be useful when messages are coming by so fast that it is hard to type on the console.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Andrew Johnson
Sent: Wednesday, April 18, 2012 3:07 PM
To: [email protected]
Cc: [email protected]
Subject: Re: log message filter in Asyn

Hi Matt,

On 2012-04-18 [email protected] wrote:
> 
> The problem is is that we already have loads of drivers issuing messages
>  that they shouldn't do, so it would be good to have a solution that
>  doesn't involve modifying these. True, lots of the messages should be only
>  printed once. But there is a case for a driver repeating some kinds of
>  message at some slow rate, to inform the terminal that 'something is still
>  not right'. This gets round the problem of a single message being lost due
>  to some other printout going on.

Is the fundamental issue then that its hard to use the IOC console to debug or 
fix problems because of the volume of error messages you're getting?  That's 
what 'eltc 0' is for, it stops all the background error messages coming from 
Asyn perfectly for me.

Now if you can't use that because the IOC doesn't also send its errors to an 
iocLogServer and using 'eltc 0' would cause them to be lost completely, you 
could create an errlog listener which buffers (and possibly de-duplicates if 
you wish) the errlog messages into RAM.  You would provide your own command 
which turns on the buffer and calls eltc(0), and another one which prints out 
the stored messages, stops buffering and calls eltc(1) for when you're 
finished debugging.  See errlog.h and chapter 10 of the AppDevGuide for more 
details of the errlogAddListener() API.

HTH,

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


References:
log message filter in Asyn matthew.pearson
Re: log message filter in Asyn Benjamin Franksen
RE: 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 Andrew Johnson
Next: running example application in RTEMS-MVME2304 Qazi Zia-ul-Haque
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  2021  2022  2023  2024 
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  2021  2022  2023  2024 
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 ·