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  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  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  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Filtering messages print on the IOC shell console
From: Ben Franksen via Tech-talk <tech-talk at aps.anl.gov>
To: "Paduan Donadio, Marcio" <marcio at slac.stanford.edu>, Ben Franksen via Tech-talk <tech-talk at aps.anl.gov>
Date: Thu, 26 Mar 2020 21:22:58 +0100
Am 26.03.20 um 20:57 schrieb Paduan Donadio, Marcio via Tech-talk:
> We have some modules at SLAC that print tons of messages on the
> console when something gets wrong. When implemented through Asyn or
> Stream Device there are ways to reduce or cut off the messages, but
> some modules implement everything with printf or errLogPrintf.
>
> It is a long shot, but do you think that there is a way to modify the
> IOC shell layer to verify a message before it is printed, even when
> printf is used?
>
> Or, did anyone have a better idea other than to modify every module,
> changing printf and errLogPrintf to something else?

AFAIK errlogPrintf console output can be suppressed by setting some
global variable. I have forgotten the name but it is documented in the
developer's guide in the section about the errlog facility.

For printf all you can do is redirect stdout to somewhere else...

Cheers
Ben

________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Dr. Volkmar Dietz, stv. Vorsitzende Dr. Jutta Koch-Unterseher
Geschäftsführung: Prof. Dr. Bernd Rech (Sprecher), Prof. Dr. Jan Lüning, Thomas Frederking

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

Attachment: pEpkey.asc
Description: application/pgp-keys


References:
Filtering messages print on the IOC shell console Paduan Donadio, Marcio via Tech-talk

Navigate by Date:
Prev: Filtering messages print on the IOC shell console Paduan Donadio, Marcio via Tech-talk
Next: Re: Filtering messages print on the IOC shell console Johnson, Andrew N. via Tech-talk
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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Filtering messages print on the IOC shell console Paduan Donadio, Marcio via Tech-talk
Next: Re: Filtering messages print on the IOC shell console Johnson, Andrew N. via Tech-talk
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  <20202021  2022  2023  2024 
ANJ, 26 Mar 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·