Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-546

Fluent logging API doesn't populate timestamp with Reload4JLogger

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.0.3
    • 2.0.0-alpha7
    • Implementations
    • None

    Description

      If my log format includes a timestamp with %d:

      log4j.appender.A1.layout=org.apache.log4j.PatternLayout
      log4j.appender.A1.layout.ConversionPattern=%d %m%n
      

      and I log with both the traditional and fluent APIs:

              log.info("A simple message");
              log.atInfo().log("Fluent message");
      

      then the timestamp isn't populated for the fluent-logged message:

      2022-04-01 21:34:37,776 A simple message
      1970-01-01 10:00:00,000 Fluent message
      

       

      Attachments

        There are no Sub-Tasks for this issue.

        Activity

          People

            slf4j-dev SLF4J developers list
            josephw Joseph Walton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: