Thursday, September 20, 2012

Logging data in ADF using ADF logger

import oracle.adf.share.logging.ADFLogger;

public class sampleBean{

    private static ADFLogger log= ADFLogger.createADFLogger(sampleBean.class);

    public sampleBean() {   
        intialize();
    }

  public void customMethod(String input1) {

     try {

          log.info("Given Input:" + input1);
       } catch (Exception ex) {

         log.severe("Exception message: " + ex.getMessage() );
       }
    }
}

No comments:

Post a Comment

Provide your thoughts !