added log level to config and commented code for starting the log

This commit is contained in:
2021-10-12 10:31:40 -04:00
parent de8798a405
commit 46d3e251a3
2 changed files with 16 additions and 0 deletions

View File

@@ -3,6 +3,17 @@
from ldap3 import Connection, Server, ANONYMOUS, SIMPLE, SYNC, ASYNC
from getpass import getpass
import configparser
import logging
#logger = logging.getLogger(__main__)
#logger.setLevel(logging.INFO)
#logging.basicConfig(level=logging.INFO,format='%(asctime)s - [%(levelname)s] %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
#logLevel = config['DEFAULT']['logLevel']
#logLevel = debug
#logging.basicConfig(level=logging.logLevel,format='%(asctime)s - [%(levelname)s] %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
# import the config file
config = configparser.ConfigParser()