Create a ticket
Sign in Sign up
Locker support Locker support
Results

No results found.

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

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
logging.basicConfig()
logging.getLogger('locker').setLevel(logging.DEBUG)
 
Was this page helpful?
No
Yes
Join Our Community