Question
HCL
IN
Last activity: 23 Jul 2018 7:42 EDT
Configuring Log Level settings for Listeners
Hello,
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:
<category name="com.pega.pegarules.integration.engine.internal.services.listener.ListenerStateManagerImpl" additivity="false">
<priority value="alert"/>
<appender-ref ref="CONSOLE"/>
</category>
But this also didn't work. Can someone let me know how to proceed with this?
Thanks in advance.
Regards,
Bhanu.
***Moderator Edit: Vidyaranjan | Updated Platform Capability***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
HCL
IN
Hi,
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
<category name="com.pega.pegarules.integration.engine.internal.services.listener.ListenerStateManagerImpl">
<priority value="alert"/>
<appender-ref ref="CONSOLE"/>
</category>
Bits In Glass
GB
Hi
Did you try from SMA?
If not, then try from SMA.
https://collaborate.pega.com/question/how-can-i-set-log-levels-sma-particular-class
Thanks
PEG
GB
I was under the impression loggers would usually default to ALERT. So I don't think this setting would help in this instance.
Additionally, I've examined the underlying code and can only see logger outputs on WARN, INFO, ERROR.
For the actual problem, is it that you have started a listener and this appears to stop for unknown reasons?
If so, is there anything else in the logs, such as Exceptions which may indicate what the problem is?
If so, did you ex
Pegasystems Inc.
GB
Hi Bhanu,
In Pega 7.2.2, I think prlog4j2.xml is being used. Have you tried to add the logger in this file?
Regards
Simon
-
Rob Flower
Pegasystems Inc.
PL
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.
Bits In Glass
GB
Hi
Please ignore my previous post.
Please refer the following links. This may help.
https://collaborate.pega.com/question/set-logging-level-permanently
Thanks
Updated: 13 Jul 2018 4:28 EDT
Pegasystems Inc.
GB
Hi
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,
<category name="com.pega.pegarules.integration.engine.internal.services.listener.ListenerStateManagerImpl" additivity="false">
<priority value="debug"/>
</category>
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.
Accepted Solution
HCL
IN
Hi,
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
<category name="com.pega.pegarules.integration.engine.internal.services.listener.ListenerStateManagerImpl">
<priority value="alert"/>
<appender-ref ref="CONSOLE"/>
</category>