Create a ticket
Sign in Sign up
Locker support Locker support

No results found.

Home Locker Secrets Manager Developer tools Secrets - SDK Python Usages Logging
Vietnamese English

The library can be configured to emit logging that will give you better insight into what it's doing. There are some levels: debug, info, warning, error.

The info logging level is usually most appropriate for production use, but debug is also available for more verbosity.


There are a few options for enabling it:

1. Set the environment variable LOCKER_LOG to the value debug, info, warning or error

$ export LOCKER_LOG=debug

2. Set log when initializing the Locker object

from locker import Locker

locker = Locker(log="debug")

3. Enable it through Python's logging module:

import logging
Was this page helpful?
Join Our Community