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

allow printing of partial payload

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • logback-classic
    • None

    Description

      Partial printing for large payloads should be supported.

      For example, let p be an object such that p.toString().length() is larger than 1K and let PARTIAL_PRINT be a marker. We should be able to write

      logger.debug(PARTIAL_PRINT, "payload is {}", p);

      so that only a small part of p is printed. It would be the responsibility of the relevant converter to handle partial printing in this case.

      If partial printing of data over X bytes, for some user-specified X, is often desirable, we could default to partial printing unless a special marker, e.g. PRINT_ALL, tells us otherwise.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            ceki Ceki Gülcü
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: