How can I dynamically set a "logLevel" variable used during logging?

I want to control logging levels (e.g. INFO, ERROR, DEBUG) interactively such that I can change them on the fly and have my logging policy (JavaScript) add additional content to the log messages. I want this to happen in a "timely" manner.

I'm setting the "logLevel" value in a KVM per proxy. I know from docs that the KVM cache is not cleared when updating the KVM in the UI or management API.

So, there are a few options:

  1. Set the "ExpiryTimeInSecs" to a low enough value to be "timely" (e.g. 30), and change the value in the UI or Management API, but there is a tradeoff on performance.
  2. Use a special built API proxy that uses the KVM policy to PUT the value as suggested here, but that seems contrived.

What other options are there?

0 1 248
1 REPLY 1

Use KVM,

Keep interval small.

Validate your concerns about "tradeoff on performance" in practice.

I'll bet it won't be extravagant.