Uh oh!
There was an error while loading. Please reload this page.
Cloud logging logback appender - #2045
Conversation
jabubake
commented
May 9, 2017
@meltsufin , @gregw PTAL |
coveralls
commented
May 10, 2017
Changes Unknown when pulling 46dc384 on jabubake:cloud-logging-logback-adapter into ** on GoogleCloudPlatform:master**. |
coveralls
commented
May 10, 2017
Changes Unknown when pulling 0184291 on jabubake:cloud-logging-logback-adapter into ** on GoogleCloudPlatform:master**. |
| <appender name="CLOUD" class="com.google.cloud.logging.contrib.LoggingAppender"> | ||
| <level>DEBUG</level> <!-- Optional : default INFO --> | ||
| <log>application.log</log> <!-- Optional : default java.log --> | ||
| <enhancers>com.google.cloud.logging.TestLoggingEnhancer</enhancers> <!-- Optional --> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| Add the appender to your [Logback configuration](https://logback.qos.ch/manual/configuration.html) `logback.xml` | ||
| ```xml | ||
| <configuration> | ||
| <appender name="CLOUD" class="com.google.cloud.logging.contrib.LoggingAppender"> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| return MonitoredResourceUtil.getResource(projectId, resourceType); | ||
| } | ||
| List<LoggingEnhancer> getEnhancers() { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
meltsufin
left a comment
There was a problem hiding this comment.
Thanks Jisha for putting this together!
| } | ||
| /** | ||
| * Sets the minimum logging level, defaults to INFO |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| List<LoggingEnhancer> enhancers = new ArrayList<>(); | ||
| if (list != null) { | ||
| String[] items = list.split(","); | ||
| for (String e_name : items) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| /** | ||
| * Add extra labels using classes that implement {@link LoggingEnhancer}. | ||
| * | ||
| * @param enhancers list of enhancer classnames |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coveralls
commented
May 10, 2017
Changes Unknown when pulling 4348833 on jabubake:cloud-logging-logback-adapter into ** on GoogleCloudPlatform:master**. |
coveralls
commented
May 11, 2017
Changes Unknown when pulling 8cd6b19 on jabubake:cloud-logging-logback-adapter into ** on GoogleCloudPlatform:master**. |
jabubake
commented
May 12, 2017
@garrettjonesgoogle PTAL |
| private String enhancers; | ||
| /** | ||
| * Batched logging requests get immediately flushed for logs at or above level. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| } | ||
| /** | ||
| * Sets the log filename, defaults to java.log. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| * Sets the name of the monitored resource (Optional). | ||
| * | ||
| * <p>Must be a <a href="https://cloud.google.com/logging/docs/api/v2/resource-list">supported</a> | ||
| * resource type. gae_app, gce_instance and container are auto-detected, defaults to "global" |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| * <p>Must be a <a href="https://cloud.google.com/logging/docs/api/v2/resource-list">supported</a> | ||
| * resource type. gae_app, gce_instance and container are auto-detected, defaults to "global" | ||
| * | ||
| * @param resourceType name of monitored resource |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| * | ||
| * @param enhancers list of enhancer classnames (comma separated) | ||
| */ | ||
| public void setEnhancers(String enhancers) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| <!-- Optional : filter logs at or above a level --> | ||
| <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> | ||
| <level>INFO</level> | ||
| </filter> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| ----------- | ||
| This library is usable, but not yet complete. | ||
| * Auto-reload of properties is not fully tested |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| super.stop(); | ||
| } | ||
| protected Logging getLogging() { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| super.start(); | ||
| } | ||
| protected String getProjectId() { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
| /** Initialze and configure the cloud logging service. */ | ||
| @Override | ||
| public synchronized void start() { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
enhancers now individual xml elements code cleanup based on review
coveralls
commented
May 17, 2017
Changes Unknown when pulling 667a4d0 on jabubake:cloud-logging-logback-adapter into ** on GoogleCloudPlatform:master**. |
garrettjonesgoogle
commented
May 22, 2017
Everything looks good, except the versions need to be updated again - s/0.17.2/0.18.0/ and s/0.17.3-alpha-SNAPSHOT/0.18.1-alpha/SNAPSHOT/ |
s/0.17.2/0.18.0
jabubake
commented
May 23, 2017
@garrettjonesgoogle done. |
garrettjonesgoogle
commented
May 23, 2017
LGTM |
Logback support for google-cloud-logging
Logback support for google-cloud-logging
#2045) * chore: Update generation configuration at Sat Mar 15 02:26:49 UTC 2025 * chore: Update generation configuration at Mon Mar 17 02:30:04 UTC 2025 * chore: Update generation configuration at Tue Mar 18 02:29:28 UTC 2025 * chore: Update generation configuration at Wed Mar 19 02:29:06 UTC 2025
* feat: count row merging errors as internal errors Currently they dont have a status associated and thus get counted as UNKOWN Change-Id: Ida3470a0609f2e2ad51534eb3141db394af1dcdc * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * format Change-Id: Iccb2a38b78e5f6c420cb1656887beebaecfa02d2 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
🤖 I have created a release *beep* *boop* --- ## [2.31.0](https://togithub.com/googleapis/java-bigtable/compare/v2.30.0...v2.31.0) (2024-01-12) ### Features * Add a flag to add / remove routing cookie from callable chain ([googleapis#2032](https://togithub.com/googleapis/java-bigtable/issues/2032)) ([8d08406](https://togithub.com/googleapis/java-bigtable/commit/8d08406d1775cf4274ae712f75511043c2800001)) * Adding feature flags for routing cookie and retry info ([googleapis#2031](https://togithub.com/googleapis/java-bigtable/issues/2031)) ([450af14](https://togithub.com/googleapis/java-bigtable/commit/450af14068131c27fb42176bca779df67cf6e292)) * Count row merging errors as internal errors ([googleapis#2045](https://togithub.com/googleapis/java-bigtable/issues/2045)) ([68b8f0b](https://togithub.com/googleapis/java-bigtable/commit/68b8f0b9dacf631836377c62aa9723d06af73536)) * Enable feature flag when setting is enabled ([googleapis#2043](https://togithub.com/googleapis/java-bigtable/issues/2043)) ([29e67f2](https://togithub.com/googleapis/java-bigtable/commit/29e67f2f128027ee944e7f09ff1a5a575e611531)) * Handle retry info so client respect the delay server sets ([googleapis#2026](https://togithub.com/googleapis/java-bigtable/issues/2026)) ([96e6011](https://togithub.com/googleapis/java-bigtable/commit/96e60112db170f7f6615687436a0ca6814917552)) ### Bug Fixes * **deps:** Update the Java code generator (gapic-generator-java) to 2.31.0 ([googleapis#2044](https://togithub.com/googleapis/java-bigtable/issues/2044)) ([1c0b376](https://togithub.com/googleapis/java-bigtable/commit/1c0b3764058a9cc50c25650e231b448aed4555dc)) * Fix RetryInfo algorithm and tests ([googleapis#2041](https://togithub.com/googleapis/java-bigtable/issues/2041)) ([9fa2bd5](https://togithub.com/googleapis/java-bigtable/commit/9fa2bd56ceb0e797d92d67741442a37a53461abc)) ### Dependencies * Update dependency com.google.cloud:gapic-libraries-bom to v1.27.0 ([googleapis#2030](https://togithub.com/googleapis/java-bigtable/issues/2030)) ([9ee2f56](https://togithub.com/googleapis/java-bigtable/commit/9ee2f56ab74774dd35c2d8dc6a5628e75e8c3698)) * Update dependency com.google.truth.extensions:truth-proto-extension to v1.2.0 ([googleapis#2035](https://togithub.com/googleapis/java-bigtable/issues/2035)) ([ffd8af3](https://togithub.com/googleapis/java-bigtable/commit/ffd8af39afb770f8dc3ef6622942f2141a8141fc)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Adding logback support (via Slf4j surface) for google-cloud-logging