public sealed class BackendServiceLogConfig : IMessage<BackendServiceLogConfig>, IEquatable<BackendServiceLogConfig>, IDeepCloneable<BackendServiceLogConfig>, IBufferMessage, IMessage
The available logging options for the load balancer traffic served by this backend service.
This field can only be specified if logging is enabled for this backend service. The value of the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 0.0.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eBackendServiceLogConfig\u003c/code\u003e class provides configuration for logging load balancer traffic in the Google Cloud Compute API.\u003c/p\u003e\n"],["\u003cp\u003eVersion 3.6.0 is the latest version available for \u003ccode\u003eBackendServiceLogConfig\u003c/code\u003e, with numerous previous versions ranging from 1.0.0 to 3.5.0 also documented.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEnable\u003c/code\u003e property determines whether logging is turned on or off for a backend service, and the \u003ccode\u003eHasEnable\u003c/code\u003e property verifies whether it is set.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSampleRate\u003c/code\u003e property controls the proportion of logged requests that are reported, with a range from 0.0 to 1.0, and \u003ccode\u003eHasSampleRate\u003c/code\u003e determines if it has been set.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements various interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and inherits from \u003ccode\u003eObject\u003c/code\u003e, offering features like cloning and comparison.\u003c/p\u003e\n"]]],[],null,[]]