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

rampai
Community Advisor
Community Advisor
August 2, 2019

I have created a few log entries under slinglog config, for example, audit.log and search.log and so on.  Same logs have created in code base also,  now am trying to remove the manual logs created under sling log, from the remove loggers, but log configuration is deleted once the restarted application deleted logs are been under /system/console/slinglog path.  The same config is not under /apps/your project name/config (only code base logs are reflecting in the mentioned path).


Then you might still be having some manually created duplicate logging config for the same.

Please check if you can see multiple entries for the logger under Apache Sling Logging Logger Configuration in configMgr.

You should be able to find the duplicate entries under /apps/system/config as explained above.

The location under quickstart where these get stored is \crx-quickstart\launchpad\config\org\apache\sling\commons\log\LogManager\factory\config if you want to cross-check.

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.