DdlUtils
  1. DdlUtils
  2. DDLUTILS-168

DatabaseTaskBase should keep log4j configuration untouched

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0 RC1
    • Component/s: Ant Tasks
    • Labels:
      None
    • Environment:
      all

      Description

      DatabaseTaskBase should hava an option to keep log4j´s configuration untouched. In current version, the implemented behaviour causes conflicts when running ant via its API from, say, a jmx inside JBoss.

      The symptom is the infamous log4j´s message "ERROR: invalid console appender config detected, console stream is looping".

      In my private copy of ddlutils, I´ve implemented a workaround by surrounding most of the code inside the function initLogging() with an "if ( a sensible system property not found )

      { do log4j stuff }

      ".

      Actually, I don´t know why is this code there, anyway... The comment in the code say that you´re forcing console output, but makes no mention about the reasoning behind this decision.

      Should´t log be simply delegated to commons-logging ?

        Activity

        Philippe de M. Sevestre created issue -
        Thomas Dudziak made changes -
        Field Original Value New Value
        Resolution Won't Fix [ 2 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Thomas Dudziak made changes -
        Resolution Won't Fix [ 2 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Thomas Dudziak made changes -
        Fix Version/s 1.0 [ 12310891 ]
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Thomas Dudziak made changes -
        Fix Version/s 1.0 [ 12310891 ]
        Fix Version/s 1.0 RC1 [ 12312482 ]

          People

          • Assignee:
            Thomas Dudziak
            Reporter:
            Philippe de M. Sevestre
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development