Configuring Vision Client Log Levels Before Launch

Is it possible to configure log levels for specific loggers before launching an application in the Vision client? I know they can be adjusted from the diagnostics popup after launch, but I’m wondering if there’s a way to set them in advance.

Do you need it to happen before anything else has happened, or does "before other scripts have run" suffice?

You could drop calls to system.util.setLoggingLevel in a client startup script if the latter is sufficient:

1 Like

I would prefer the former if possible.

I tried putting a system.util.setLoggingLevel script in a client startup script but it seems like it cannot find the logger.

This is my script. The logger name I’m using is the same I see in the vision client diagnostic popup
system.util.setLoggingLevel("vision.binding.indirect-tag-binding", "debug")

However I get this error when starting the vision client project:

ValueError: Unable to change logger level: NameError: The Logger vision.binding.indirect-tag-binding could not be found.

Try preceding that line with system.util.getLogger(...) to force creation of that logger.

1 Like

Oh I see. Adding the getLogger() before setting it made it work!