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

Logging to Standard Out

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: logging
    • Labels:
      None

      Description

      The description below is from RFC Logging to Standard Out

      Problem

      Currently logging to stdout is not consistent between client, server and locator. If log-file is null on a client then it will log to stdout by default, but on servers and locators it will log to a file named after the member. Setting the log-file to "" (empty string) on the server will result in logging to stdout, but on a locator it is treated like the null case and logs to a file. The only way get the locator to log to stdout is to override the log4j.xml file.

      Anti-Goals

      Do not change the current default behavior in client, server, or locators when handling null or "" (empty string).

      Solution

      Introduce a new value log-file of "-" (dash) to indicate standard out, which is a common standard across most applications. When the logger is configured and thee log-file value is "" then the logger will log to standard out and not to any files.

      Changes and Additions to Public Interface

      Changes will be needed in documentation to reference this new value for logging to standard out.

      Performance Impact

      As no changes will be made to logging itself there is not impact to performance.

      Backwards Compatibility and Upgrade Path

      Since no changes are being made to the current behaviors there should be no impact to rolling upgrades and backwards compatibility.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              aaronlindsey Aaron Lindsey
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: