issue with reading error log at CRXDE lite console | Community
Skip to main content
Level 3
January 24, 2017
Solved

issue with reading error log at CRXDE lite console

  • January 24, 2017
  • 11 replies
  • 6300 views

Hello,

We are upgrading AEM 5.6.1 to 6.2.

I am checking crxde lite and found that error log does not show up properly.

All we read is No appender with name [/logs/error.log]

This messesage keeps repeating.

I loggin http://ourserver:4502/crx/de/index.jsp with administrator acount.

Then clicked "Console" tab. All we can see in drop down menu is "Server Logs".

It works perfectly in AEM 5.6.2, but not in AEM 6.2

Any advise/comments would be appliciated.

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 smacdonald2008

Support team is recommending that AEM users no longer use CRXDE lite to view log files.

We are working with the doc team to modify this information. 

Refer to this topic now: 

https://docs.adobe.com/docs/en/aem/6-2/deploy/configuring/configure-logging.html

I personally use a text editor to read AEM log files. 

11 replies

Prince_Shivhare
Community Advisor
Community Advisor
January 24, 2017

Hi,

You should not be looking at log files via CRXDE lite.

log files in 6.2 are project specific - better to open them from a text editor.

see attached screenshot.

Hope this helps!

Regards,

Prince

keehwan1Author
Level 3
January 24, 2017

Thank you for reply.

According to AEM 6.2 doc, https://docs.adobe.com/docs/en/aem/6-2/develop/dev-tools/developing-with-crxde-lite.html#Logging, we can read error.log from CRXDE Lite.


Logging

With CRXDE Lite you can display the file error.log that is located on the file system at <crx-install-dir>/crx-quickstart/server/logs and filter it with the appropriate log level. Proceed as follows:

  1. Open CRXDE Lite in your browser.
  2. In the Console tab at the bottom of the window, in the drop-down menu on the right, select Server Logs.
  3. Click the Stop icon to display the messages.

You can:

  • Adjust the log parameters in the Felix Console by clicking the Logging Configurations icon.
  • Clear the messages by clicking the Brush icon.
  • Pin the message at the current selection by clicking the Pin icon.
  • Enable or disable the displaying of messages by clicking the Stop icon.
smacdonald2008
Level 10
January 24, 2017

As Prince mentioned - its far better to view the log files directly using a Text Editor. There are various log files. In AEM 6,2 - there are project specific log files that you can view. For example -- project-repeatHTL.log as shown in the pic that Prince posted. 

However - if click the Console tab and Select Server logs - you can see the error.log conents written out in CRXDE lite: 

However - its still better to view them via text editors. 

keehwan1Author
Level 3
January 24, 2017

Thank you.

I quite got usedt to reading error log from CRXDE Lite.

The problem I have now is that the error log does not show up in CRXDE Lite.

Pleae see the attached file.

smacdonald2008
Level 10
January 24, 2017

Did you click the Stop button - i did that and the log showed up. 

keehwan1Author
Level 3
January 24, 2017

Yes, I clicked the Stop button. All log I can read is "No appender with name [/logs/error.log]" which keeps repeating.

smacdonald2008
Level 10
January 24, 2017

Do you have an error.log file in the main log folder? 

keehwan1Author
Level 3
January 24, 2017

Yes, we have error.log under \crx-quickstart\logs.

It is quite hugh, 3.35gb. It includes WARN, INFO, ERROR. Mostly WARN.

One of WARNs 

23.01.2017 00:00:00.020 *WARN* [sling-default-2705-com.day.cq.dam.core.impl.ExpiryNotificationJobImpl] org.apache.jackrabbit.oak.spi.query.Cursors$TraversingCursor Traversed 2000 nodes with filter Filter(query=select [jcr:path], [jcr:score], * from [dam:Asset] as a where [jcr:content/metadata/prism:expirationDate] > cast('2017-01-22T04:00:00.011Z' as date) and [jcr:content/metadata/prism:expirationDate] < cast('2017-01-23T04:00:00.004Z' as date) and isdescendantnode(a, '/content/dam') /* xpath: /jcr:root/content/dam//element(*, dam:Asset)[(jcr:content/metadata/@prism:expirationDate > xs:dateTime('2017-01-22T04:00:00.011Z') and jcr:content/metadata/@prism:expirationDate < xs:dateTime('2017-01-23T04:00:00.004Z'))] */, path=/content/dam//*, property=[jcr:content/metadata/prism:expirationDate=[(2017-01-22T04:00:00.011Z.., ..2017-01-23T04:00:00.004Z)]]); consider creating an index or changing the query

smacdonald2008
Level 10
January 24, 2017

Maybe this explain why its not showing up in CRXDE lite. I am checking with the AEM Support team to see if this is a known issue. 

In mean time - can you check on another AEM instance - a clean instance with a smaller log. 

smacdonald2008
smacdonald2008Accepted solution
Level 10
January 24, 2017

Support team is recommending that AEM users no longer use CRXDE lite to view log files.

We are working with the doc team to modify this information. 

Refer to this topic now: 

https://docs.adobe.com/docs/en/aem/6-2/deploy/configuring/configure-logging.html

I personally use a text editor to read AEM log files.