Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-628

Cannot set log4j.Clock with Async appender

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-rc1
    • 2.0-rc2
    • Appenders
    • None
    • Ubuntu 12.04 / Java 7

    Description

      I override log4j.Clock to support a "live" time vs a "simulated" time.

      System.setProperty("log4j.Clock", "teambh.trade.utils.MyClock");

      If I use asynchronous loggers, it works fine and calls my Clock:currentTimeMillis().

      If I switch to async appenders, currentTimeMillis() is not called.

      Is this expected behavior or a bug?

      Thanks

      Attachments

        Activity

          People

            rpopma Remko Popma
            bhsueh Bryan Hsueh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: