Skip to content

Custom log enhancers prevented due to visibility of LoggingHandler.Enhancer interface #1597

Description

@jscinoz

com.google.cloud.logging.LoggingHandler allows enhancer classes to be configured to augment created LogEntry & MonitoredResource instances.

The Enhancer interface is package-private, preventing the implementation of custom Enhancers (unless one resorts to putting their third-party Enhancer implementation in the com.google.cloud.logging package). As there's only a single Enhancer implementation shipped with the library (GaeFlexLoggingEnhancer), this makes the entire Enhancer functionality not terribly useful.

Is this intentional or simply an oversight?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

api: loggingIssues related to the Cloud Logging API.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions