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

async logging supports to dynamically change tags and decorators

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 17
    • 17, 18
    • hotspot
    • b29
    • generic
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: