Skip to content

Allow port, protocol and fallback properties in LoggingConfig #1594

@kawmra

Description

@kawmra

Hello,

For local developing, I’m creating a mock server for the Cloud Logging API. To use the mock server, I need to specify a custom API endpoint, port, protocol and enable REST fallback.

It appears the Logging class constructor doesn't expose options for this. However, the underlying clients it uses (like LoggingServiceV2Client) are initialized with google-gax's ClientOptions, which supports apiEndpoint, port, protocol, and fallback.

Could you please consider exposing these properties in LoggingConfig? This would make it much easier to mock the service for local development and testing.

Thanks you.

Metadata

Metadata

Assignees

Labels

api: loggingIssues related to the googleapis/nodejs-logging API.priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions