TM4J uses the Jakarta Commons logging system. This is a thin abstraction layer wrapping various logging facilities, such as Log4J, Avalon logging, and the logging functionality built into JDK 1.4. Is it developed by the Jakarta Commons project team, a subproject of the Apache Software Foundation's Jakarta Project. There is very little you have to do in order to get logging working with TM4J, most setups should require no configuration at all.
The Commons logging system will select its underlying logging facility based on the following procedure:
If desired, the Jakarta Commons logging system allows for much more fine-grained configuration. See the Commons logging users guide for details. Most setups, however, shouldn't require such tweaking of the logging system.
If you do wish to tweak logging levels to suit your configuration, you will want to know which logging categories are available in TM4J. You may refer to the following table in order to decide which categories of message you need to log and which can be safely ignored.
Note that logging categories are hierarchical, so a logging level defined on a high-level category is inherited by all lower-level categories unless otherwise specified.
To Be CompletedTable 3.8. TM4J Logging Categories
Category Identifier | Use |
---|---|
org.tm4j.topicmap | General topic map processing messages |
org.tm4j.topicmap.events | Messages logged when events are generated / handled |
org.tm4j.topicmap.index | Messages from general index processing |
org.tm4j.topicmap.utils | Messages from the topic map utilities, including the XTMBuilder which creates objects from the parsing of XTM files. |
org.tm4j.tolog | Messages from the Tolog query processor. |
org.tm4j.topicmap.backend.memory | Messages specific to the in-memory back-end |
org.tm4j.topicmap.backend.hibernate | Messages specific to the Hibernate back-end implementation. |
org.tm4j.topicmap.backend.hibernate.SIP | Messages specific to the creation/deletion of identifiers used to determine topic merging in the Hibernate back-end implementation. |
org.tm4j.topicmap.index.backend.memory | Messages specific to the in-memory indexing system. |
org.tm4j.topicmap.backend.ozone | Messages specific to the Ozone back-end |
org.tm4j.topicmap.output | Messages generated when writing topic maps to XTM file format. |