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  2021  2022  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: PVA Gateway Logging Problem
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: "Murray, Doug" <drm at slac.stanford.edu>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 22 May 2023 15:57:24 -0700
On 5/22/23 13:32, Murray, Doug via Tech-talk wrote:
Problem solved, the config files I started from used “True” and “False” instead of true and false.

Perhaps the previous one was based on yaml instead of json..?

dictConfig and the json parser used are features of the python standard library.
Perhaps the file you started from was developed against on older python version
which behaved differently?

https://docs.python.org/3/library/logging.config.html?highlight=dictconfig#logging-config-dictschema


cheers

-doug

*From: *Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Murray, Doug via Tech-talk <tech-talk at aps.anl.gov>
*Date: *Monday, May 22, 2023 at 11:17 AM
*To: *tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
*Subject: *PVA Gateway Logging Problem

I’ve successfully configured a PVA gateway (based on p4p R4.1.6) but I can’t get the logging mechanism to work.  The gateway itself is working fine.  I’ve reduced the config file to a simple one, but still no output is produced.

Does anybody have a working example of a JSON log config file in dictConfig format, or have an idea what might need to change in this file?

{

     "version": 1,

     "disable_existing_loggers": "False",

     "formatters": {

         "consoleFormat": {

             "format": "%(asctime)s | %(name)s | %(levelname)s | %(message)s"

         }

     },

     "handlers": {

         "consoleMessages": {

             "level": "DEBUG",

             "class": "logging.StreamHandler",

             "formatter": "consoleFormat",

             "stream": "ext://sys.stdout"

         }

     },

     "loggers": {

         "": {

             "handlers": ["consoleMessages"],

             "level": "DEBUG",

             "propagate": "True"

         }

     }

}

cheers

-doug



References:
PVA Gateway Logging Problem Murray, Doug via Tech-talk
Re: PVA Gateway Logging Problem Murray, Doug via Tech-talk

Navigate by Date:
Prev: Re: PVA Gateway Logging Problem Murray, Doug via Tech-talk
Next: RE: warning: multiple interrupt callbacks between processing when running testAsynPortDriverApp Wang, Lin 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  <20232024 
Navigate by Thread:
Prev: Re: PVA Gateway Logging Problem Murray, Doug via Tech-talk
Next: motor R7-3 released Kevin Peterson 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  <20232024 
ANJ, 23 May 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·