2 Replies Latest reply on Apr 9, 2013 3:36 AM by manish28june

    Logging custom errors using slf4j

    manish28june Level 1

      I am trying to log custom error messages using default CQ logger but these error messages are not appearing in any of the log files


      I am using following code


      package org.training.test;

      import org.slf4j.Logger;

      import org.slf4j.LoggerFactory;

      public class HelloWorld {

      private Logger logger = LoggerFactory.getLogger(this.getClass());

      public String getMessage(){

                          logger.debug("slf4j logging test");

                          return "hellow test"+ (new ExcelDataLoader()).test();




      Could you pls help me understanding which configuration i am missing

      i have verified all files in C:\CQ5\crx-quickstart\logs

      I can see System.out messages in stdout.log files but couldnt find custom logs.

      i have verified Log Service is running fine and log level is set to Debug.