How to use MessageLogging policy in VS Code

I have the MessageLogging policy which write logs to GCP stack driver and it is working fine in ApigeeX UI. But trying to use the same in VS Code but deployment itself is failing. Has anyone tried this? 

 

02/28/2022 12:06 PM EMULATOR ERROR Code   : steps.messagelogging.DestinationRequired
02/28/2022 12:06 PM EMULATOR ERROR Message: At least one destination is required
02/28/2022 12:06 PM EMULATOR ERROR File   : \src\main\apigee\sharedflows\SF-GCPLogging\sharedflowbundle\policies\ML-Logging.xml:2:79
02/28/2022 12:06 PM EMULATOR ERROR Environment dev deployment, to Container apigee-local (1.6.1) failed with Error: 400
02/28/2022 12:06 PM EMULATOR ERROR Deploy to Container apigee-local (1.6.1), failed with Error: Environment dev deployment, to Container apigee-local (1.6.1) failed with Error: 400

 

 

4 4 423
4 REPLIES 4

Is there any solution for this? I have the same problem.

For now I managed to beat this error by replacing CloudLogging with Syslog in policy MessageLogging. But it's still not the solution I'm looking for, as soon as I have news I'll update you.

Since this has become a blocker for us, I've created an issue on GitHub: https://github.com/GoogleCloudPlatform/cloud-code-vscode/issues/617

Please consider upvoting! 

Stumbled upon this also 😞