Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8267952

async logging supports to dynamically change tags and decorators

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 17, 18
    • Fix Version/s: 17
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b29
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        I read JEP-158 again, here is the statement:
        "Logging can be configured dynamically at runtime via jcmd or MBeans"

        Currently, dcmd can change tags and decorators on the fly.

        eg. The following command affects log output #2, which is file=gc.log

        jcmd 120863 VM.log output=file=gc.log what='all=off,logging+thread=debug,gc=debug' decorators=t,tid,l,tags

        dmcd can use 'what' and 'decorators' to change log selections and decorators. those things are changeable for an established log output.

        This feature is supported well by synchronous logging. Currently, it's not MT-safe in async mode.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                xliu Xin Liu
                Reporter:
                xliu Xin Liu
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: