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

Cannot set log4j.Clock with Async appender

    Details

    • Type: Question
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-rc1
    • Fix Version/s: 2.0-rc2
    • Component/s: Appenders
    • Labels:
      None
    • Environment:

      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

            • Assignee:
              remkop@yahoo.com Remko Popma
              Reporter:
              bhsueh Bryan Hsueh
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: