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  2020  <20212022  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  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: streamdevice error messages
From: Ben Franksen via Tech-talk <tech-talk at aps.anl.gov>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Mon, 12 Apr 2021 19:48:05 +0200
Am 12.04.21 um 08:22 schrieb Michael Davidsaver:
> On 4/9/21 4:05 AM, Ben Franksen via Tech-talk wrote:
>> Is there a way in streamdevice to
>>
>> (a) turn off coloring of messages?
>> (b) turn off the timestamps added to messages?
>>
>> Rationale: we log everything happening on an IOC's console and the color
>> escape codes make the logs hard to read.
> 
> I've been trying out the idea of adding color in the IOC core
> to make error messages during iocInit more apparent.  To avoid
> the complaint you make in the case of errlog, I add some code
> which strips out some ANSI escape sequences prior to logging.
> 
> https://github.com/epics-base/epics-base/pull/113
> 
> Of course this is no help for eg. procserv or screen.

Indeed, we use procServ directly to log everything, not just errors,
because it is very helpful to see what has been done on the console, too.

> Although, in the case of procserv some similar stripping
> could be added.

True. I already played with a quick and dirty shell script to remove at
least the red color coding...

Cheers
Ben
-- 
I would rather have questions that cannot be answered, than answers that
cannot be questioned.  -- Richard Feynman


Attachment: signature.asc
Description: OpenPGP digital signature


References:
streamdevice error messages Ben Franksen via Tech-talk
Re: streamdevice error messages Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re: streamdevice error messages Ben Franksen via Tech-talk
Next: Creating a record and using its instance. Wang, Andrew 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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: streamdevice error messages Michael Davidsaver via Tech-talk
Next: PVA crossing network segments Vodopivec, Klemen 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  <20212022  2023  2024 
ANJ, 12 Apr 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·