How to custom logs(manual created logs) from application | Community
Skip to main content
Level 2
August 1, 2019

How to custom logs(manual created logs) from application

  • August 1, 2019
  • 4 replies
  • 11709 views

Hi ,

I have few loggers which have created under slinglog and under /system/console/ConfigMgr, for the consistency have moved the logs on code basis.

Now how to delete the logs from aem application which is under sling log.  I have deleted the logs from logger remover from the sling log configuration, once the application restart  still I can see the logs under  /system/console/slinglog,

Thanks,

Gavya S

>aem application

[Here is the list of all Adobe forums... https://forums.adobe.com/welcome]

[Comments is to ask about the operation of the Forum, not a specific program]

[Moved from the Comments forum to the specific Program forum... Mod]

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

4 replies

Adobe Employee
August 1, 2019

You can click on the configuration icon for a particular logger and then click on "Remove Logger"

Adobe Employee
August 1, 2019

Hello Gavya,

Check if your custom log configs exist under /apps/system/config or /apps/yourprojectname/config and delete it from there.

Regards,

Vishu

Adobe Employee
August 1, 2019

Hi gavyas,

Use CRXDE Lite search to search for the name of your custom log file name (e.g. file="logs/queries.log", I search for 'queries.log' ) and see if there are any results within /apps, or any other directory, which has a node name similar to below:

/apps/system/config/org.apache.sling.commons.log.LogManager.factory.config.f0515b33-4f34-4b63-9e24-ac09ff72eae0.config 

Check the resulting .config file (double click the .config node within content tree to review the file -- ) and confirm if it's the custom log details -- move it to /tmp and restart AEM instance to see if the logger still shows in /system/console/slinglog

Regards,

Lisa

gavyaAuthor
Level 2
August 2, 2019

Hi Lisa,

This is not helping us this, it's deleting the code base logs from the crx/de.

Thanks,

Gavya S

gavyaAuthor
Level 2
August 2, 2019

Then goto /apps/system/config in CRXDE and double click on the factory config to check if it is the duplicate one. If yes, then delete it or move it to /tmp as mentioned by Lisa earlier.

Once done, come back and cross check that you have only single entry in configMgr which is from the application codebase.

No restart is needed ideally. The changes take place immediately since it is OSGi.


I have done that, but still, I can see the logs in system/console/slinglog. which is not the duplicated under Apache Sling Logging Logger Configuration in ConfigMgr.

Level 2
August 2, 2019

Hi,

If you are using custom-logs using logback then please remove the respective logback xml files from the crx-quickstart.

Go to log-support  console and edit error.log and remove the logback xml entry.

Hope it will help.