Maker in logs does not work in AEM Cloud?? | Community
Skip to main content
Level 2
August 17, 2022

Maker in logs does not work in AEM Cloud??

  • August 17, 2022
  • 4 replies
  • 1018 views
Hi Team, I have added Marker in logs using AEM as cloud service , but it does not print at all. is it like marker not supported or any particular syntax..I need to follow
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

4 replies

Nirmal_Jose
Adobe Employee
Adobe Employee
August 17, 2022

Adobe’s general guidance on log levels per AEM as a Cloud Service environment are:

Local Development (AEM SDK):DEBUG
Development:DEBUG
Stage:WARN
Production:ERROR

 

Are you setting the right log level as per the environment type ?

joerghoh
Adobe Employee
Adobe Employee
August 17, 2022

What do you mean with "marker in logs"?

HeenaMadan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 17, 2022

Did you set correct log level as per environment runmode?

 

AEM Environment-Log Level

Development -DEBUG

Stage- WARN

Production- ERROR

 

Use

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MyClass {
  private static final Logger log = LoggerFactory.getLogger(MyClass.class);

  public void myMethod(String name) {
    log.debug("You invoked my method: {}", name);
  }
}

Refer https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/developing/logging.html?lang=en

 

arunpatidar
Community Advisor
Community Advisor
August 17, 2022