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  2025  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  2025 
<== Date ==> <== Thread ==>

Subject: Re: streamdevice error messages
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: Ben Franksen <benjamin.franksen at helmholtz-berlin.de>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Sun, 11 Apr 2021 23:22:21 -0700
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.
Although, in the case of procserv some similar stripping
could be added.


> Also, the logging already
> inserts a timestamp, so the extra timestamp added by streamdevice gets
> in the way.
> 
> Cheers
> Ben
> 


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

Navigate by Date:
Prev: Re: Questions about arrays [SEC=UNOFFICIAL] STARRITT, Andrew via Tech-talk
Next: Vacancy at PSI: Software Scientists to develop data reduction and processing solutions Zimoch Dirk (PSI) 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  2025 
Navigate by Thread:
Prev: Re: streamdevice error messages Ben Franksen via Tech-talk
Next: Re: streamdevice error messages Ben Franksen 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  2025 
ANJ, 12 Apr 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·