Skip to content

Log configuration coming from system properties, not just rule params #27

@seanf

Description

@seanf

When a config item like the database URL is modified in the rule configuration, enforcer outputs log information, but when the same config item is configured via a system property, there is no logging.

Worse still, if both values have been set, the database config from the rule is logged, but it is the system property which takes precedence!

By the way, you might find it helpful to integrate the logging for victims-lib-java and victims-enforcer.

zanata-maven-plugin uses com.pyx4j:maven-plugin-log4j plus org.slf4j:slf4j-log4j12to allow generic (non-Maven) code in zanata-client-commands to log to Maven's log system by using slf4j calls.

See https://github.com/zanata/zanata-client/blob/client-3.4.0/zanata-maven-plugin/src/main/java/org/zanata/maven/ConfigurableMojo.java#L106 for the setup code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions