This document provides guidelines on debugging the internals of AndroMDA. Logging is managed by AndroMDALogger .
To override the default log4j settings:.
<property name="loggingConfigurationUri">file:/some_location/log4j.xml</property>
Category | Usage |
---|---|
AndroMDA | General Information messages |
namespaces | Information messages for namespaces. |
AndroMDA:NAMESPACE_NAME | Information messages for the specific namespace. |
org.andromda.namespaces.CARTRIDGE | Debug messages for the specific cartridge. |
The base class, MetaFacadeBase of Facade logic classes contains an instance variable logger. This logger will have been initialized to use the appropriate namespace category for the cartridge which contains this class. When using the debug calls the isDebugEnabled method should be used to reduce the overhead of debug calls
if (logger.isDebugEnabled()) { logger.debug("A debug message '" + metaObject + "," + context + "'"); }
Logger namespaceLogger = AndroMDALogger.getNamespaceLogger("ejb"); if (namespaceLogger.isDebugEnabled()) { namespaceLogger.warn("EJBEntityFacadeLogicImpl(" + metaObject + "," + context + ")"); }