https://issues.apache.org/bugzilla/show_bug.cgi?id=49571

           Summary: refreshing log4j - reconfigurable from
                    log4j.properties and safe in J2EE
           Product: Log4j
           Version: 1.2
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Configurator
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: tomaszb...@gmail.com


FAQ says:
"Because the configureAndWatch launches a separate wathdog thread, and because
there is no way to stop this thread in log4j 1.2, the configureAndWatch  method
is unsafe for use in J2EE envrironments where applications are recycled."

However in HA production J2EE environment it is crucial to have possiblity to
change logging settings (mainly LEVEL) without restarting server.
To simply achieve this:
- add option to configuration file: watchDelay=<miliseconds>
- if watchDelay is declared log4j watches for changes in configuration file.
- skip idea of watchDog and check directly inside calls of logger.debug/info
that there is a need to reload configuration file - by this, it will be 100%
safe in J2EE.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org

Reply via email to