Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

How to get log records?

Avatar

Level 2

How do i get a log record while deploying bundle manually by system/console?

Thanks in advance..

1 Accepted Solution

Avatar

Correct answer by
Administrator

Hi 

Please refer to this documentation to help you :-

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

//

Standard Loggers and Writers

Certain Loggers and Writers are included in a standard AEM installation.

The first is a special case as it controls both the request.log and access.log files:

  • The Logger:
    • Apache Sling Customizable Request Data Logger
      (org.apache.sling.engine.impl.log.RequestLoggerService)
    • Write messages about request content to request.log.
  • Links to:
    • Apache Sling Request Logger
      (org.apache.sling.engine.impl.log.RequestLogger)
    • Writes the messages to either request.log or access.log.

These can be customized if required, though the standard configuration is suitable for most installations.

The other pairs follow the standard configuration:

  • The Logger:
    • Apache Sling Logging Logger Configuration
      (org.apache.sling.commons.log.LogManager.factory.config)
    • Writes Information messages to logs/error.log.
  • Links to the Writer:
    • Apache Sling Logging Writer Configuration
      (org.apache.sling.commons.log.LogManager.factory.writer)
  • The Logger:
    • Apache Sling Logging Logger Configuration
      (org.apache.sling.commons.log.LogManager.factory.config.649d51b7-6425-45c9-81e6-2697a03d6be7)
    • Writes Warning messages to ../logs/error.log for the service org.apache.pdfbox.
  • Does not link to a specific Writer so will create and use an implicit Writer with default configuration (daily log rotation).

Creating Your Own Loggers and Writers

You can define your own Logger / Writer pair:

  1. Create a new instance of the Factory Configuration Apache Sling Logging Logger Configuration.
    1. Specify the Log File.
    2. Specify the Logger.
    3. Configure the other parameters as required.
  2. Create a new instance of the Factory Configuration Apache Sling Logging Writer Configuration.
    1. Specify the Log File - this must match that specified for the Logger.
    2. Configure the other parameters as required.

A Knowledge Article covering Log Viewer :- https://helpx.adobe.com/experience-manager/kb/logsviewer.html

//

Log Viewer allows you to do the following:

  • Display the content of log files in the web console user interface.
  • Tail a log file to see new lines as they are added to the file in real time.
  • Download an individual file or the zip file containing all the logs in the logs directory.

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

1 Reply

Avatar

Correct answer by
Administrator

Hi 

Please refer to this documentation to help you :-

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

//

Standard Loggers and Writers

Certain Loggers and Writers are included in a standard AEM installation.

The first is a special case as it controls both the request.log and access.log files:

  • The Logger:
    • Apache Sling Customizable Request Data Logger
      (org.apache.sling.engine.impl.log.RequestLoggerService)
    • Write messages about request content to request.log.
  • Links to:
    • Apache Sling Request Logger
      (org.apache.sling.engine.impl.log.RequestLogger)
    • Writes the messages to either request.log or access.log.

These can be customized if required, though the standard configuration is suitable for most installations.

The other pairs follow the standard configuration:

  • The Logger:
    • Apache Sling Logging Logger Configuration
      (org.apache.sling.commons.log.LogManager.factory.config)
    • Writes Information messages to logs/error.log.
  • Links to the Writer:
    • Apache Sling Logging Writer Configuration
      (org.apache.sling.commons.log.LogManager.factory.writer)
  • The Logger:
    • Apache Sling Logging Logger Configuration
      (org.apache.sling.commons.log.LogManager.factory.config.649d51b7-6425-45c9-81e6-2697a03d6be7)
    • Writes Warning messages to ../logs/error.log for the service org.apache.pdfbox.
  • Does not link to a specific Writer so will create and use an implicit Writer with default configuration (daily log rotation).

Creating Your Own Loggers and Writers

You can define your own Logger / Writer pair:

  1. Create a new instance of the Factory Configuration Apache Sling Logging Logger Configuration.
    1. Specify the Log File.
    2. Specify the Logger.
    3. Configure the other parameters as required.
  2. Create a new instance of the Factory Configuration Apache Sling Logging Writer Configuration.
    1. Specify the Log File - this must match that specified for the Logger.
    2. Configure the other parameters as required.

A Knowledge Article covering Log Viewer :- https://helpx.adobe.com/experience-manager/kb/logsviewer.html

//

Log Viewer allows you to do the following:

  • Display the content of log files in the web console user interface.
  • Tail a log file to see new lines as they are added to the file in real time.
  • Download an individual file or the zip file containing all the logs in the logs directory.

I hope this would help you.

Thanks and Regards

Kautuk Sahni



Kautuk Sahni