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..?
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"
}
}
}