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
<2020>
2021
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
<2020>
2021
2022
2023
2024
|