Logger Threshold doesn't work | Community
Skip to main content
Level 2
September 13, 2016
Solved

Logger Threshold doesn't work

  • September 13, 2016
  • 6 replies
  • 1647 views

Hi,

I changed the error log threshold from "info" to "warn". Still I see info messages in my log. I want to get rid of these info messages and I want to log only warn and error logs in the error log file. 

I checked this link : http://cq-ops.tumblr.com/post/78113074496/how-to-suppress-informational-log-messages-from

But I dont want to create the log for any specific bundle or class. I want to have all warn/error logs at one place so the server maintenance team can identify the real problems more easily. Am I missing something in the configuration ?

Can someone help me how to achieve this ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

Hi,

From what I know you cannot have WARN/ERROR messages in one log and the INFO messages in another log. You might want to ask on the Sling mailinglist though if that's possible.

Jörg

6 replies

Feike_Visser1
Adobe Employee
Adobe Employee
September 13, 2016

Can you share some sample/more details on your config?

Naren1925Author
Level 2
September 14, 2016

Hi Feike,

I am not using any custom Logger osgi:config. This is the OOTB available in Felix console Logger. I am attaching the screenshot for your reference.

Thanks,

Narendra N

Feike_Visser1
Adobe Employee
Adobe Employee
September 14, 2016

Can you check this url? /system/console/slinglog

Gives a better overview.

Naren1925Author
Level 2
September 14, 2016

If I change the Root Sling Logger configuration, I see only ERROR and WARNs in error log, which is good. But here is the real problem. If I create a new logger configuration called logs/info.log and provide the class as org.apache.pdfbox with INFO threshold, it doesn't log anything. I want to have two separate log files for ERROR/WARN and INFO.

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
September 14, 2016

Hi,

From what I know you cannot have WARN/ERROR messages in one log and the INFO messages in another log. You might want to ask on the Sling mailinglist though if that's possible.

Jörg

Naren1925Author
Level 2
September 15, 2016

Thanks Jörg.