The logging system configuration file, GI_HOME/logger.xml, specifies which logging messages are displayed, how they are displayed, and where they are sent. You can also edit logger.xml, as well as create a custom logging system configuration file. See Creating a Custom Logging System Configuration File. Memory HandlerThe memory handler stores a rotating cache of logging messages in memory. Note that some features of the General Interface Builder IDE require this handler. If it's not available, they won't function properly. <handler name="memory" class="jsx3.util.Logger.MemoryHandler"> <property name="bufferSize" eval="true" value="1000"/> </handler> Memory Handler AttributesSee Handler Attributes. Memory Handler PropertiesThe memory handler has the following property:
System Log HandlerThe system log handler prints logging messages to the General Interface Builder System Log palette in the IDE. For logging to work in the IDE, there must be only one system log handler. <handler name="ide" class="jsx3.ide.SystemLogHandler" lazy="true"> <property name="bufferSize" eval="true" value="0"/> <property name="format" value="%t %n (%l) - %M"/> <property name="beepLevel" eval="true" value="jsx3.util.Logger.ERROR"/> </handler> System Log Handler AttributesSee Handler Attributes. System Log Handler PropertiesThe system log handler has the following properties:
JavaScript Alert HandlerThe alert handler sends formatted messages to a JavaScript alert. The fatal handler, as configured in the default logger.xml file, ensures that fatal errors are displayed in a JavaScript alert. Fatal messages usually relate to failure to initialize the system or load an application and so may indicate that the output of other handlers isn't visible. <handler name="alerter" class="jsx3.util.Logger.AlertHandler" level="ERROR"> <property name="format" value="%t %n (%l) - %M"/> </handler> <handler name="fatal" class="jsx3.util.Logger.AlertHandler" level="FATAL"> <property name="format" value="%t %n (%l) - %M"/> </handler> JavaScript Alert Handler AttributesSee Handler Attributes. JavaScript Alert Handler PropertiesThe AlertHandler class has the following property:
The alert handler is registered with the jsx3.util.Logger logger to capture any errors not handled correctly by the other handlers. <logger name="jsx3.util.Logger" level="WARN" useParent="false"> <handler-ref name="alerter"/> </logger> Application Monitor HandlerWhen an application monitor handler is registered for an application running outside of General Interface Builder, logging messages are sent to a separate browser window. This is useful for testing and debugging a deployed application. The logging system configuration file provides a template for creating an application monitor handler. By default, the application monitor is disabled. For more information, see Creating an Application Monitor Handler. <handler name="appMonitor1" class="jsx3.app.Monitor" require="true"> <property name="serverNamespace" value="myApp"/> <property name="disableInIDE" eval="true" value="true"/> <property name="activateOnHotKey" eval="true" value="false"/> <property name="format" value="%t %n (%l) - %M"/> </handler> Application Monitor Handler AttributesSee Handler Attributes. Application Monitor Handler PropertiesThe application monitor handler has the following properties:
Global LoggerThe global logger is the ancestor of all other loggers. Custom handlers and application monitor handlers can be registered with the global logger. <logger name="global" level="INFO"> <handler-ref name="memory"/> <handler-ref name="ide"/> </logger> Alternately, handlers can be registered with a descendant logger. <logger name="system.critical" level="FATAL"> <handler-ref name="page_ceo"/> </logger> Any logger can have the following attributes and nested entities:
Handler AttributesHandlers can include the following attributes:
|
Contents
|
