Highlighted

How to custom logs(manual created logs) from application

Avatar

Avatar

gavyas

Avatar

gavyas

gavyas

01-08-2019

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]

Replies

Highlighted

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

01-08-2019

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

Screen Shot 2019-08-01 at 10.44.52 AM.png

Highlighted

Avatar

Avatar

Vish_dhaliwal

Employee

Avatar

Vish_dhaliwal

Employee

Vish_dhaliwal
Employee

01-08-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

Highlighted

Avatar

Avatar

lmha

Employee

Avatar

lmha

Employee

lmha
Employee

01-08-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 

Screen Shot 2019-08-01 at 12.13.54 PM.png

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

Highlighted

Avatar

Avatar

gavyas

Avatar

gavyas

gavyas

02-08-2019

Hi Lisa,

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

Thanks,

Gavya S

Highlighted

Avatar

Avatar

rampai

Avatar

rampai

rampai

02-08-2019

Hi gavyas​,

Can you please explain what do you mean when you say delete the logs? I believe you have already removed the config for the logger from sling log as mentioned in the question.

Do you mean that you want to delete the old logs that were generated before you moved them to a project specific logger? If that is the case you can do say by opening the respective log file from /crx-quickstart/logs/<yourlogfile.log> and deleting them.

If not, can you post some screenshots with more details?

Highlighted

Avatar

Avatar

basantrai

Avatar

basantrai

basantrai

02-08-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.

Highlighted

Avatar

Avatar

gavyas

Avatar

gavyas

gavyas

02-08-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).

Highlighted

Avatar

Avatar

rampai

Avatar

rampai

rampai

02-08-2019

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.

Avatar

Avatar

gavyas

Avatar

gavyas

gavyas

02-08-2019

Yes, I can see the multiple entry under the config Apache Sling Logging Logger Configuration in ConfigMgr, attaching one of the sample ones.

1805290_pastedImage_0.png