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
Commits on Jan 5, 2022
-
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.
Configuration menu - View commit details
-
Copy full SHA for b0a6ea6 - Browse repository at this point
Copy the full SHA b0a6ea6View commit details -
feat: auto-populate metadata of log entries at write() (#803)
Populate empty metadata fields of each log entry on write().
Configuration menu - View commit details
-
Copy full SHA for f485d70 - Browse repository at this point
Copy the full SHA f485d70View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 072dec3 - Browse repository at this point
Copy the full SHA 072dec3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4565209 - Browse repository at this point
Copy the full SHA 4565209View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 735275f - Browse repository at this point
Copy the full SHA 735275fView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 9e575b4 - Browse repository at this point
Copy the full SHA 9e575b4View commit details
Commits on Jan 6, 2022
-
Configuration menu - View commit details
-
Copy full SHA for cdb44af - Browse repository at this point
Copy the full SHA cdb44afView commit details -
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
Configuration menu - View commit details
-
Copy full SHA for db6bf1c - Browse repository at this point
Copy the full SHA db6bf1cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ad0f80c - Browse repository at this point
Copy the full SHA ad0f80cView commit details -
Merge branch 'minherz/structured_logging' of https://github.com/googl…
…eapis/java-logging into minherz/structured_logging
Configuration menu - View commit details
-
Copy full SHA for 6994650 - Browse repository at this point
Copy the full SHA 6994650View commit details -
Configuration menu - View commit details
-
Copy full SHA for e3b78f0 - Browse repository at this point
Copy the full SHA e3b78f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 113e424 - Browse repository at this point
Copy the full SHA 113e424View commit details -
Merge branch 'minherz/structured_logging' of https://github.com/googl…
…eapis/java-logging into minherz/structured_logging
Configuration menu - View commit details
-
Copy full SHA for 48bb23d - Browse repository at this point
Copy the full SHA 48bb23dView commit details