Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enable auto-population of missing metadata in logs and printing structured logs to stdout #808

Merged
merged 13 commits into from Jan 7, 2022

Commits on Jan 5, 2022

  1. feat: allow opt-out auto-population of the log entry metadata on writ…

    …e() (#798)
    
    Allows to opt-out auto populate log entry metadata on write in the write() API and Logging instance levels.
    Tests WriteOption to out-out  auto populating metadata.
    Tests LoggingOption to out-out  auto populating metadata.
    Tests default LoggingOption for auto populating metadata.
    Refactors LoggingOptions tests.
    Refactors LoggingOptions auto populate metadata getter method.
    Fixes cast compilation warning.
    minherz committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    b0a6ea6 View commit details
    Browse the repository at this point in the history
  2. feat: auto-populate metadata of log entries at write() (#803)

    Populate empty metadata fields of each log entry on write().
    minherz committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    f485d70 View commit details
    Browse the repository at this point in the history
  3. feat: configure opt-out metada auto-population for JUL handler (#807)

    Adds metadata auto-population flag to JUL handler.
    Adds metadata auto-population flag to logging config file.
    Forwards metadata auto-population flag via WriteOption to write() calls.
    Refactors JUL handler tests to remove duplication, unused calls and warnings
    minherz committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    072dec3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4565209 View commit details
    Browse the repository at this point in the history
  5. feat: support structured logging in LoggingHandler using configuration (

    #812)
    
    Implements populateMetadata() API.
    Changes Logging.write() API to populate the provided list of log entries using the new API.
    Refactors SourceLocation.fromCurrentContext() to use a list of exclusion instead of the call stack depth level as parameter.
    Adds configuration `populateToStdout` to `LoggingConfig`.
    Use the new configuration within `LoggingHandler` to print to STDOUT instead of ingesting the log by calling Logging.write().
    Refactor LoggingImpl, LoggingHandler and unit tests.
    minherz committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    735275f View commit details
    Browse the repository at this point in the history
  6. chore: add unit test for LoggingHandler (#813)

    rename unit tests to reflect the right configuration name being tested.
    test log enhancers when redirecting to stdout.
    minherz committed Jan 5, 2022
    Configuration menu
    Copy the full SHA
    9e575b4 View commit details
    Browse the repository at this point in the history

Commits on Jan 6, 2022

  1. Revert "chore: update README (#814)" (#819)

    This reverts commit c8b0ee8.
    minherz committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    cdb44af View commit details
    Browse the repository at this point in the history
  2. chore: update README about using metadata auto-population and redirec…

    …ting JUL handler to STDOUT (#821)
    
    Add description about automatic metadata population and redirection of JUL logs to stdout to README.
    Reverse the use of 'appendComma' flag
    Rename populateMetadata? flags to make the logic clear
    minherz committed Jan 6, 2022
    Configuration menu
    Copy the full SHA
    db6bf1c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ad0f80c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6994650 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e3b78f0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    113e424 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    48bb23d View commit details
    Browse the repository at this point in the history