Last active
March 23, 2017 16:58
-
-
Save fredreichbier/2ce6e3278ccdfcf5fbe4e1b5ef7cf414 to your computer and use it in GitHub Desktop.
How to setup privacyIDEA logging for the ldap3 package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[loggers] | |
keys=ldap3,root | |
[formatters] | |
keys=form | |
[handlers] | |
keys=hand | |
[logger_ldap3] | |
level=DEBUG | |
handlers=hand | |
propagate=0 | |
qualname=ldap3 | |
[logger_root] | |
level=DEBUG | |
handlers=hand | |
[handler_hand] | |
class=FileHandler | |
level=DEBUG | |
formatter=form | |
args=('privacyidea.log', 'w') | |
[formatter_form] | |
format=%(asctime)s %(levelname)s %(message)s | |
datefmt= | |
class=logging.Formatter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PI_LOGCONFIG = 'ldap3-log.cfg' | |
from ldap3.utils.log import BASIC, PROTOCOL, set_library_log_detail_level | |
set_library_log_detail_level(BASIC) | |
# or: set_library_log_detail_level(PROTOCOL) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment