Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-8203

Provide a way to prevent disabling logging to std out

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.13.1, 1.14.0
    • Component/s: logging
    • Labels:
      None

      Description

      It looks like when using geode by default disableLoggingToStandardOutputIfLoggingToFile is always called and std out is disabled if using the default log4j2.xml.

      The simplest options I can see are
      1.) A mechanism to prevent disabling stdout, such as providing a system property
      2.) Provide a gfsh command to re-enable the GeodeConsoleAppender

      We are unable to use the -Dlog4j.configurationFile because that property overrides the log4j configuration for all our other applications.
      We are also unable to override/extend the existing logging provider in our application (it's a non java app)

      This is not a request for changing default behavior. Just a request to provide a way to prevent auto disabling the std out appender.

        Attachments

          Activity

            People

            • Assignee:
              jasonhuynh Jason Huynh
              Reporter:
              jasonhuynh Jason Huynh
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: