Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-2407

It should be possible to set or change Logging levels via environment


    • JDG Sprint #24, JDG Sprint #25, JDG Sprint #26, JDG Sprint #27, JDG Sprint #28

      To set dedicated categories for logging DEBUG/TRACE there is no environment variable to do so.
      It can not done for all started pods. the only way at this point is to use the CLI to change the configuration at runtime, but this has some important drawbacks

      • DEBUG or TRACE flag might be cached static in some classes for performance
        so the change at runtime has no effect
      • It is not possible to analyze errors during boot time as there might be no ERROR/WARN/INFO messages what is wrong
        The container shows a summary that there are some failures during boot
        or worse the pod will be killed imediately

      The environment setting should have key values to enable new or change existing categories like

      LOG_ROOT=TRACE <- change <root-logger><level name=........>
      LOG_org.infinispan=DEBUG <- might remove exixting and add
      <logger category="org.infinispan">
      <level name="DEBUG"/>

      Note that the category might be case sensitive!

            remerson@redhat.com Ryan Emerson
            rhn-support-wfink Wolf Fink
            Prajakta Deshmukh Prajakta Deshmukh (Inactive)
            0 Vote for this issue
            7 Start watching this issue