We have an issue where I need to set logging level for listeners ( Whenever a listener is down, an alert has to be created in log file ). If I add through Designer Studio, then after restart of Node, it is automatically getting removed and so I need to add it again. I tried to modify prlogging.xml ( we are on version 7.2.2 ) by adding the below tag:
It is a correct approach. You can also change logging level in Designer Studio, however, it will work until next restart. If you will put those settings in xml file that will work after server restart.
Posted: 5 years ago
Posted: 12 Jul 2018 12:23 EDT
Krishna Chaitanya Abburi (KC-Abburi)
Bits In Glass
Bits In Glass
for permanent logging, setting logging level in the prlogging.xml is the right approach in 7.2.2 version.
I suspect you used the CONSOLE appender-ref, which will not redirect to pegarule log.
unless you have a requirement to use different logfile, i think the simplest way is to just define category, and desired logging level in the priority. this should sent to all the root loggers defined for ex,
However as Laurence mentioned, all loggers are defaulted to "Alert" level, so not sure if adding a logging level will help your requirement, as in case a Listener goes down, there should be an associated error, which will be logged in the logs anyways.
Thanks for your responses and I got the resolution with the idea provided by ManuV_GCS, but i have modified it by removing additivity=false and keeping PriorityValue=ALERT and this worked. Below is the one that I have added in prlogging.xml