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: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: "'Hu, Yong'" <yhu at bnl.gov>, 'Ben Franksen' <benjamin.franksen at helmholtz-berlin.de>, "'Zimoch Dirk (PSI)'" <dirk.zimoch at psi.ch>
Cc: EPICS Tech-Talk <tech-talk at aps.anl.gov>
Date: Mon, 12 Apr 2021 13:51:41 +0000
I think it would be nice if the error logging and debugging output in stream used asynTrace.  My understanding is that asyn is currently the only I/O system supported by stream, so it is always present.  However, should be possible to abstract the support so the diagnostics can either use asyn if it is available, or something else if it is not.

The advantages of asynTrace include:
- Fine-grained control what metadata is in the message prefix (timestamp, asyn port, source line #, thread name)
- Ability to turn on debugging messages for a specific asyn port and address.  Currently when stream debugging is enabled all records with stream support print messages.
- Finer control over debugging messages (ASYN_TRACE_WARNING, ASYN_TRACEIO_DRIVER, ASYN_TRACE_INFO)
- Ability to route only the asynTrace output to a user-defined log file.  This can be done to different files on a per-port basis.

Mark

-----Original Message-----
From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Hu, Yong via Tech-talk
Sent: Sunday, April 11, 2021 6:34 PM
To: Ben Franksen <benjamin.franksen at helmholtz-berlin.de>; EPICS tech-talk <tech-talk at aps.anl.gov>; Zimoch Dirk (PSI) <dirk.zimoch at psi.ch>
Subject: Re: streamdevice error messages

Hi Ben,

(a): if you are using the latest StreamDevice (2.8.19, or my fork as shown in #b), set the variable "streamDebugColored" to 0 either in st.cmd or the EPICS shell: var streamDebugColored 0 (streamDebugColored is default to 1)

(b): I have a fork from PSI StreamDevice: https://github.com/huyong1979/StreamDevice. You can try my fork. It works on Debian 7 (base-3.14.12.3 , gcc 4.7.2, make 3.81). I can turn off the timestamps added to messages by setting the variable "streamDebugTS" to 0 (streamDebugTS is default to 1).

Cheers,
Yong

********************************************************************************
On 4/9/21, 7:06 AM, "Tech-talk on behalf of Ben Franksen via Tech-talk" <tech-talk-bounces at aps.anl.gov on behalf of tech-talk at aps.anl.gov> 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. Also, the logging already
    inserts a timestamp, so the extra timestamp added by streamdevice gets
    in the way.

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




References:
streamdevice error messages Ben Franksen via Tech-talk
Re: streamdevice error messages Hu, Yong via Tech-talk

Navigate by Date:
Prev: Vacancy at PSI: Software Scientists to develop data reduction and processing solutions Zimoch Dirk (PSI) via Tech-talk
Next: Driver for Agilent TwisTorr 305-IC Gay, Gregory (DLSLtd, RAL, LSCI) 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 Hu, Yong 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 
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 ·