Logging in DeltaNova

Logging in DeltaNova

Logging helps the DeltaXML support team diagnose problems that are otherwise hard to reproduce. By default, users do not need to change their workflow — existing product behaviour is unaffected. The java.util.logging API is used; no additional jars are required.

Loggers

Loggers are grouped by area of functionality using dot-separated hierarchical naming:

Logger Name

Covers

com.deltaxml.logging.resolvers

Internal entity resolution, URI resolution, delegation to catalog systems and user-provided resolvers.

Log Levels

Figure — java.util.logging levels from ALL (most verbose) to OFF, with DeltaXML usage guidance

Level

DeltaXML Usage

INFO

Unexpected events — default JRE level.

CONFIG

API and pipeline configuration details.

FINE

Per-filter, per-pipeline, per-comparison-type information.

FINER

Per-event logging (e.g., each entity resolution or external URL fetch).

FINEST

Very fine-grained events, e.g., when a specific element is found in input.

WARNING

Recoverable issues.

SEVERE

Errors that may prevent correct results.

OFF

No logging (default unless configured otherwise).

ALL

Everything.


Configuring DeltaNova Logging

Before You Begin

  • Familiarity with java.util.logging is recommended for server environments

  • Write access to a location where a logging.properties file can be created

  • The path to your DeltaNova command.jar installation

Procedure — Command Line

  1. Create a logging.properties file containing the desired handler and level configuration:

    handlers = java.util.logging.ConsoleHandler
    java.util.logging.ConsoleHandler.level = ALL
    java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
    com.deltaxml.logging.resolver.level = FINER
    
  2. Pass the file path to the JVM via -Djava.util.logging.config.file when invoking the product:

    Bash
    java -Djava.util.logging.config.file=/path/to/logging.properties \
         -Dxml.catalog.files=/path/to/catalog.xml \
         -jar command.jar compare diffreport input-a.xml input-b.xml result.xml
    
  3. Review the console output for log messages at the configured level and above.

Alternative Configuration Methods

  • Add logging.properties to the JVM classpath.

  • Edit the JRE's default logging.properties file (affects all Java applications on the system).

  • Programmatically configure handlers and levels in Java code.

Server Environments

If your application server does not support java.util.logging and only supports log4j, use the jul-to-slf4j bridge to route logging through your existing infrastructure. The performance overhead of the bridge is not expected to cause issues for DeltaXML's logging use.

For further configuration guidance: http://tutorials.jenkov.com/java-logging/configuration.html.