Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-770

Colon within syslog SuffixPattern converted to string messing up date

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 1.0.7
    • logback-classic
    • None
    • Tried 1.0.0 and 1.0.7 on a Mac OS X 10.8.x

    Description

      I have logback.xml with a syslog SuffixPattern:
      "%d

      {"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"}

      [%thread] %logger

      {30}

      %level - %msg"

      The 1st colon within the date is getting converted into a string of the form: <level>:

      This results in invalid output like:
      2012-11-30T16 <Info>: 20:31.517Z

      I came up with a hack to put a colon at the start of the SuffixPattern resulting in output like:
      <Info>: 2012-11-30T1620:31.517Z

      Attachments

        Activity

          People

            logback-dev Logback dev list
            blaze Robert Blazewicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: