Logging  Locate

BEA AquaLogic Service Registry wraps the Log4j logging service to log errors, warnings, and other information. By default:

To use the same logging mechanism in custom server code (such as the Custom Validation Service):

  1. Import com.idoox.debug.Category to your java class:

    import com.idoox.debug.Category;
                

  2. Create static instance with name of the category:

    private static Category log = Category.getCategory("com.company.MyValidationService");
                

  3. It is a good habit to name the category according to its class name. You can use the category

                             
    ...
    try{
          ...
    } catch(Exception e){
       log.error("Fatal error", e);
        }
    ...