BEA AquaLogic Service Registry wraps the Log4j logging service to log errors, warnings, and other information. By default:
All such events are logged to REGISTRY_HOME\log\logEvents.log.
All errors including stack traces are logged to REGISTRY_HOME\log\errorEvents.log.
Behavior descriptions are configured in REGISTRY_HOME\conf\log4j.config.
To use the same logging mechanism in custom server code (such as the Custom Validation Service):
Import com.idoox.debug.Category to your java class:
import com.idoox.debug.Category;
Create static instance with name of the category:
private static Category log = Category.getCategory("com.company.MyValidationService");
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); } ...