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: Changing ioc logging. Should I use a modified iocLogServer?
From: "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov>
To: "tcumming at gemini.edu" <tcumming at gemini.edu>
Cc: Emma Kurz <ekurz at gemini.edu>, Tiffany Shreves <tshreves at gemini.edu>, Hawi Stecher <hstecher at gemini.edu>, EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Wed, 22 Jul 2020 23:11:06 +0000
Hi Tom,

On Jul 22, 2020, at 4:28 PM, Tom Cumming via Tech-talk <tech-talk at aps.anl.gov> wrote:

I've been tasked with reviewing how we're currently handling ioc logging. Currently, the console concentrators we're using (Perle, WTI) are handling logging.

iocLogServer immediately comes to mind, but I swear that I saw somewhere that it's no longer going to be included in epics. Is that the case? Will it continue to be supported?

It’s still in Base, but at some point someone will probably propose that we remove it and it will either get unbundled or just dropped completely.

iocLogServer also does not conform to our standard logging practices. That means I'd have to change it but I believe these would be changes the community would enjoy.

1) Log rotation on the date/time instead of file size.
2) Individual log files per-ioc.

I'd like some feedback from folks!!!

The IOCs really don’t need any special kind of support from a log-server, so it is probably much better to pick a standard non-EPICS log-server package and just use that. All they do is open a TCP connection to a specific port on the indicated host, through which they then send text (ending in a newline) whenever they have something to log. I would like EPICS to adopt the convention that continuation lines in a multi-line message should always start with a whitespace character as that makes it easy to collect complete log messages, but there are quite a few places inside Base which don’t follow that and of course many messages come from outside of Base anyway.

The APS currently plan to use Logstash to collect messages and we will probably have that push them to an ElasticSearch database with a Kibana front-end once we get around to setting everything up. You probably already have some standard logging tool that should be able to handle them just as well once configured. I really don’t think it’s worth trying to fix the existing log-server code, I’m sure you have better things you could be spending time on.

HTH,

- Andrew

-- 
Complexity comes for free, simplicity you have to work for.


References:
Changing ioc logging. Should I use a modified iocLogServer? Tom Cumming via Tech-talk

Navigate by Date:
Prev: Changing ioc logging. Should I use a modified iocLogServer? Tom Cumming via Tech-talk
Next: Changing Asyn Port Driver paramList dynamically Paduan Donadio, Marcio 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: Changing ioc logging. Should I use a modified iocLogServer? Tom Cumming via Tech-talk
Next: Changing Asyn Port Driver paramList dynamically Paduan Donadio, Marcio 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, 22 Jul 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·